ci11111
2 Apr 2012, 12:08 AM
I'm trying to put several inline Select + a combo (multiselect) inside the same panels,
But I have no idea how to put those html selects along with the combo
thanks
Edit:
work like this:
{
xtype: 'field',
fieldLabel : 'State',
id: 'fieldStateSelect',
contentEl: 'stateSelect'
}
with applying css display:none to fieldStateSelect-bodyEl
but it could be better to do something like this?:
{
xtype: 'container',
autoEl: 'select',
items: [{
xtype: 'component',
autoEl: 'option',
html: 'Alabama'
},{
xtype: 'component',
autoEl: 'option',
html: 'Alaska'
},{
xtype: 'component',
autoEl: 'option',
html: 'Arizona'
}]
}
I don't know how to put a value in <option> thought, and how can I put a fieldLabel
Edit2: in both cases, I don't know how this fields can be automatically sent with the form (without having to add extra params) so it's not interesting, for the big number of fields I have
But I have no idea how to put those html selects along with the combo
thanks
Edit:
work like this:
{
xtype: 'field',
fieldLabel : 'State',
id: 'fieldStateSelect',
contentEl: 'stateSelect'
}
with applying css display:none to fieldStateSelect-bodyEl
but it could be better to do something like this?:
{
xtype: 'container',
autoEl: 'select',
items: [{
xtype: 'component',
autoEl: 'option',
html: 'Alabama'
},{
xtype: 'component',
autoEl: 'option',
html: 'Alaska'
},{
xtype: 'component',
autoEl: 'option',
html: 'Arizona'
}]
}
I don't know how to put a value in <option> thought, and how can I put a fieldLabel
Edit2: in both cases, I don't know how this fields can be automatically sent with the form (without having to add extra params) so it's not interesting, for the big number of fields I have