Can anyone tell, how to insert label for a ComboBox? I means a descriptive label which appears in front of the ComboBox.
Can anyone tell, how to insert label for a ComboBox? I means a descriptive label which appears in front of the ComboBox.
add this as one of your config option:
Code:{ fieldLabel:'urLabelName', }
I Meet Challenge with Excitement & My Only Gossip is Love
Well I have already tried this. But for some reason the label is not appearing.
then it must be a layout problem, please try changing the layout, still if it does not work, then please post your code.
I Meet Challenge with Excitement & My Only Gossip is Love
if the your layout is mentioned as 'column' , fieldLabel wont be visible
that's not true, if the layout is column, then you have to define the items accordingly.
I Meet Challenge with Excitement & My Only Gossip is Love
fieldLabels are only visible in a form layout.
If you are using a different layout then you need to nest an extra container, e.g.
Code:layout: 'column', items: [{ xtype: 'container', columnWidth: 0.5, layout: 'form', items: { xtype: 'textfield', fieldLabel: 'Field 1', anchor: '100%' } },{ xtype: 'container', columnWidth: 0.5, layout: 'form', items: { xtype: 'textfield', fieldLabel: 'Field 2', anchor: '100%' } }]
thank you. that solved the issue.