UbuntuPenguin
6 Aug 2012, 9:47 AM
Hello Everyone,
I have a Combobox that I am going to use for "Live Search". I would rather not have a globally available store for the combobox but I would like to have an instance variable for the combobox. My question is, what is the best way to create an instance store in a class that extends Combobox. As of now I am going with something like this until told otherwise.
initComponent:function () {
var me = this;
var localStore = Ext.create();
Ext.applyIf(me, {
store: localStore,
displayField: 'title',
Any help is greatly appreciated.
I have a Combobox that I am going to use for "Live Search". I would rather not have a globally available store for the combobox but I would like to have an instance variable for the combobox. My question is, what is the best way to create an instance store in a class that extends Combobox. As of now I am going with something like this until told otherwise.
initComponent:function () {
var me = this;
var localStore = Ext.create();
Ext.applyIf(me, {
store: localStore,
displayField: 'title',
Any help is greatly appreciated.