* @cfg {Boolean} animate default true
* @cfg {Boolean} emptyResultText only for touch device
* @cfg {String} triggerText multiple combobox trigger button text default 'Select'
+ * @cfg {String} emptyTitle default ''
* @constructor
* Create a new ComboBox.
* @param {Object} config Configuration options
animate : true,
emptyResultText: 'Empty',
triggerText : 'Select',
+ emptyTitle : '',
// element that contains real text value.. (when hidden is used..)
*/
if(!this.tickable){
cfg = Roo.bootstrap.ComboBox.superclass.getAutoCreate.call(this);
- if(this.name == 'info_year_invest_id_display_name'){
- Roo.log('cfg.................................................');
- Roo.log(cfg);
- }
return cfg;
}
tag: 'label',
'for' : id,
cls : 'control-label',
- html : this.fieldLabel,
cn : [
+ {
+ tag : 'span',
+ html : this.fieldLabel
+ },
{
tag : 'i',
cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
}
]
},
-
{
cls : "",
cn: [
];
+
+
labelCfg = cfg.cn[0];
- contentCfg = cfg.cn[2];
+ contentCfg = cfg.cn[1];
}
tag: 'label',
//cls : 'input-group-addon',
html : this.fieldLabel
-
},
-
combobox
-
];
if(this.indicatorpos == 'right'){
-
cfg.cn = [
{
tag: 'label',
//cls : 'input-group-addon',
- html : this.fieldLabel,
- cn : [
- {
- tag : 'i',
- cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
- tooltip : 'This field is required'
- }
- ]
+ html : this.fieldLabel
+ },
+ {
+ tag : 'i',
+ cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+ tooltip : 'This field is required'
},
-
-
-
combobox
-
];
-
+
}
} else {
}
this.store = Roo.factory(this.store, Roo.data);
+ this.store.parent = this;
// if we are building from html. then this element is so complex, that we can not really
// use the rendered HTML.
this.view.on('click', this.onViewClick, this);
-
this.store.on('beforeload', this.onBeforeLoad, this);
this.store.on('load', this.onLoad, this);
this.store.on('loadexception', this.onLoadException, this);
if(typeof(this.loading) !== 'undefined' && this.loading !== null){
this.loading.hide();
}
-
+
if(this.store.getCount() > 0){
+
this.expand();
this.restrictHeight();
if(this.lastQuery == this.allQuery){
{
tag: 'a',
href: '#',
- cls: 'roo-select2-search-choice-close',
+ cls: 'roo-select2-search-choice-close fa fa-times',
tabindex: '-1'
}
]