arnaudmorvan
30 May 2010, 5:58 PM
I want to fix the combobox id property to attach label on it, because I use the new composite field :
{
xtype: 'compositefield',
fieldLabel: 'field1',
items: [
{
"xtype":"textfield",
"id":"field1",
"name":"field1"
},{
xtype: 'label',
forId: 'field2',
text: 'field2'
},{
"xtype":"combo",
"id":"field2",
"name":"field2"
}
]
}
But the id property of the combo box is render to the visible input,
like to the hidden input,
so this induce a layout artefact because the two input have the same id property and I suppose the id property is used to identify the elements by the layout functions.
For myself, I just want to identify the visible input with the id config property, I don't mind if the hidden input id property is auto-assigned, if I have to get the value, I use the itemId property, but for attache the label on the visible input I need to fix the id property in the config object.
Regards
arnaud.morvan@abscisse-geomatique.fr
{
xtype: 'compositefield',
fieldLabel: 'field1',
items: [
{
"xtype":"textfield",
"id":"field1",
"name":"field1"
},{
xtype: 'label',
forId: 'field2',
text: 'field2'
},{
"xtype":"combo",
"id":"field2",
"name":"field2"
}
]
}
But the id property of the combo box is render to the visible input,
like to the hidden input,
so this induce a layout artefact because the two input have the same id property and I suppose the id property is used to identify the elements by the layout functions.
For myself, I just want to identify the visible input with the id config property, I don't mind if the hidden input id property is auto-assigned, if I have to get the value, I use the itemId property, but for attache the label on the visible input I need to fix the id property in the config object.
Regards
arnaud.morvan@abscisse-geomatique.fr