[Commits] r2286 - sandbox/styler/ux/Styler/ux/widgets
commits at geoext.org
commits at geoext.org
Fri Aug 27 15:39:20 CEST 2010
Author: adube
Date: 2010-08-27 15:39:20 +0200 (Fri, 27 Aug 2010)
New Revision: 2286
Modified:
sandbox/styler/ux/Styler/ux/widgets/StyleSelectorComboBox.js
Log:
combobox now set as private property, can define its options
Modified: sandbox/styler/ux/Styler/ux/widgets/StyleSelectorComboBox.js
===================================================================
--- sandbox/styler/ux/Styler/ux/widgets/StyleSelectorComboBox.js 2010-08-26 18:41:57 UTC (rev 2285)
+++ sandbox/styler/ux/Styler/ux/widgets/StyleSelectorComboBox.js 2010-08-27 13:39:20 UTC (rev 2286)
@@ -29,6 +29,10 @@
store: null,
+ comboBox: null,
+
+ comboBoxOptions: {},
+
/** private: method[initComponent]
*/
initComponent: function() {
@@ -70,14 +74,15 @@
return;
}
- var oCombo = new Ext.form.ComboBox({
- store: this.store,
- emptyText: "Style Selection",
- tpl: '<tpl for="."><div class="x-combo-list-item">{[values.name]}</div></tpl>',
- editable: false,
- triggerAction: 'all', // needed so that the combo box doesn't filter by its current content
- mode: 'local' // keep the combo box from forcing a lot of unneeded data refreshes
- });
+ var oCombo = new Ext.form.ComboBox(
+ Ext.applyIf(this.comboBoxOptions, {
+ store: this.store,
+ tpl: '<tpl for="."><div class="x-combo-list-item">{[values.name]}</div></tpl>',
+ editable: false,
+ triggerAction: 'all', // needed so that the combo box doesn't filter by its current content
+ mode: 'local' // keep the combo box from forcing a lot of unneeded data refreshes,
+ })
+ );
oItems.push(oCombo);
@@ -90,6 +95,8 @@
);
Ext.apply(this, {items: oItems});
+
+ this.comboBox = oCombo;
}
});
More information about the Commits
mailing list