var cfg = {
cls: 'btn-group',
html : null
- }
+ };
cfg.html = this.html || cfg.html;
cfg = {
cls: 'btn-toolbar',
html: null
- }
+ };
return cfg;
}
tag: 'div',
cls: 'roo-image-responsive-group',
cn: []
- }
+ };
var _this = this;
Roo.each(['xs', 'sm', 'md', 'lg'], function(size){
cls: (_this.imgResponsive) ? 'img-responsive' : '',
html: _this.html || cfg.html,
src: _this[size + 'Url']
- }
+ };
img.cls += ' roo-image-responsive-' + size;
cn: [
img
]
- }
+ };
if(this.target){
a.target = _this.target;
tag: 'img',
cls: (this.imgResponsive) ? 'img-responsive' : '',
html : null
- }
+ };
cfg.html = this.html || cfg.html;
tag: 'a',
href: this.href,
cn: [
- cfg
- ]
- }
+ cfg
+ ]
+ };
if(this.target){
a.target = this.target;
cls : 'dropdown-menu' ,
style : 'z-index:1000'
- }
+ };
if (this.type === 'submenu') {
cfg.cls = 'submenu active';
var mark = {
tag: "div",
cls:"x-dlg-mask"
- }
+ };
this.maskEl = Roo.DomHelper.append(this.el, mark, true);
cfg = {
tag : 'ul',
cls: 'nav'
- }
+ };
if (['tabs','pills'].indexOf(this.type)!==-1) {
cfg.cls += ' nav-' + this.type
cfg = {
tag: 'ul',
cls: 'dashboard-menu sidebar-menu'
- }
+ };
return cfg;
}
cfg = {
tag: 'form',
cls: 'navbar-form'
- }
+ };
if (this.align === 'right') {
cfg.cls += ' navbar-right';
tag: 'li',
cls: 'nav-item'
- }
+ };
+
if (this.active) {
cfg.cls = typeof(cfg.cls) == 'undefined' ? 'active' : cfg.cls + ' active';
}
var options = {
target : target,
value : o[1]
- }
+ };
this.fireEvent('scrollto', this, options, e);
tag: this.tag,
cls: this.cls,
html: this.html
- }
+ };
return cfg;
},
cls: 'ui-slider-handle ui-state-default ui-corner-all'
}
]
- }
+ };
return cfg;
}
tag: 'table',
cls : 'table',
cn : []
- }
+ };
if (this.striped) {
cfg.cls += ' table-striped';
rowIndex : rowIndex,
colIndex : i,
rowClass : ''
- }
+ };
this.fireEvent('rowclass', this, rowcfg);
var child = {
container: t.getChildContainer(),
cfg: c
- }
+ };
_this.renderCellObject(child);
})
}
getAutoCreate : function(){
var cfg = Roo.apply({}, Roo.bootstrap.TableCell.superclass.getAutoCreate.call(this));
- cfg = {
- tag: 'td'
- }
+ cfg = {
+ tag: 'td'
+ };
if(this.tag){
cfg.tag = this.tag;
cfg = {
tag: 'tr'
- }
+ };
if(this.cls){
cfg.cls = this.cls;
cfg = {
tag: 'tbody'
- }
+ };
if (this.cls) {
cfg.cls=this.cls
method : this.method || 'POST',
id : this.id || Roo.id(),
cls : ''
- }
+ };
if (this.parent().xtype.match(/^Nav/)) {
cfg.cls = 'navbar-form navbar-' + this.align;
* @extends Roo.bootstrap.Component
* Bootstrap Input class
* @cfg {Boolean} disabled is it disabled
- * @cfg {String} fieldLabel - the label associated
* @cfg {String} inputType button | checkbox | email | file | hidden | image | number | password | radio | range | reset | search | submit | text
* @cfg {String} name name of the input
* @cfg {string} fieldLabel - the label associated
- * @cfg {string} inputType - input / file submit ...
* @cfg {string} placeholder - placeholder to put in text.
* @cfg {string} before - input group add on before
* @cfg {string} after - input group add on after
]
}
]
- }
+ };
var combobox = {
cls: 'select2-container input-group select2-container-multi',
]
}
]
- }
+ };
this.maskEl = Roo.DomHelper.append(this.el.select('.fc-content', true).first(), mark, true);
var size = this.el.select('.fc-content', true).first().getSize();
var cfg = {
cls : 'fc-event-hori fc-event-draggable',
html : m.title
- }
+ };
var cg = ctr.createChild(cfg);
cg.on('click', _this.onEventClick, _this, m);
* @param {Roo.bootstrap.DateField} this
* @param {Mixed} date The date value
*/
- select : true
+ select : true,
+ /**
+ * @event beforeselect
+ * Fires when before select a date.
+ * @param {Roo.bootstrap.DateField} this
+ * @param {Mixed} date The date value
+ */
+ beforeselect : true
});
};
tag: 'span',
cls: 'month',
html: Roo.bootstrap.DateField.dates[this.language].monthsShort[i++]
- }
+ };
months.createChild(month);
}
setValue: function(v)
{
+ if(this.fireEvent('beforeselect', this, v) !== false){
+ var d = new Date(this.parseDate(v) ).clearTime();
- // v can be a string or a date..
-
-
- var d = new Date(this.parseDate(v) ).clearTime();
-
- if(isNaN(d.getTime())){
- this.date = this.viewDate = '';
- Roo.bootstrap.DateField.superclass.setValue.call(this, '');
- return;
- }
-
- v = this.formatDate(d);
-
- Roo.bootstrap.DateField.superclass.setValue.call(this, v);
-
- this.date = new Date(d.getTime() - d.getTimezoneOffset()*60000);
-
- this.update();
+ if(isNaN(d.getTime())){
+ this.date = this.viewDate = '';
+ Roo.bootstrap.DateField.superclass.setValue.call(this, '');
+ return;
+ }
- this.fireEvent('select', this, this.date);
-
+ v = this.formatDate(d);
+
+ Roo.bootstrap.DateField.superclass.setValue.call(this, v);
+
+ this.date = new Date(d.getTime() - d.getTimezoneOffset()*60000);
+
+ this.update();
+
+ this.fireEvent('select', this, this.date);
+ }
},
getValue: function()
tag: 'span',
cls: 'month',
html: Roo.bootstrap.MonthField.dates[this.language].monthsShort[i++]
- }
+ };
months.createChild(month);
}
//'for': id, // box label is handled by onclick - so no for...
cls: 'box-label',
html: this.boxLabel
- }
+ };
if(this.tooltip){
boxLabelCfg.tooltip = this.tooltip;
html: this.html || ''
}
]
- }
+ };
if(this.fixed){
cfg.cls += ' alert-messages-fixed';
var cfg = {
tag: 'div',
html : null
- }
+ };
return cfg;
]
}
]
- }
+ };
if(this.icon){
cfg.cn.push({
]
}
]
- }
+ };
}
var cfg = {
cn: []
}
]
- }
+ };
return cfg;
},
var cfg = {
tag: 'div',
cls: 'tab-pane'
- }
+ };
if(this.active){
cfg.cls += ' active';
editable : true,
delegates : [],
+
+ xhr : false,
+
getAutoCreate : function()
{
var managerWidget = {
uploadCancel : function()
{
- this.xhr.abort();
+ if (this.xhr) {
+ this.xhr.abort();
+ }
+
this.delegates = [];
cls : iconCls
}
]
- }
+ };
if(this.active){
cfg.cls += ' active';