custom Ext.form.ComboBox from markup
March 16th, 2010what i am trying to do is to create a custom drop down menu.
I found out that i can do this with Ext.form.ComboBox and the tpl property
(in fact i got the desired graphical effect - but i have to turn my data(the list items) into javascript objects... ).
So what would be really nice is to generate the whole code just from markup (as far as i understand- if u use tpl property u have also to provide store)
here so pseudo code to show what i want to
function createComboBox() {
var converted = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'selectMenu',
width:135,
forceSelection:true
});
}
so i can keep all custom things in my markup(dont like to generate javascript code) and just generate the combobox.
If its no possible to create custom layout from markup and if i have to use tpl(tpl needs store) please tell me.
Thx and Bye,
Holger
#If you have any other info about this subject , Please add it free.# |