mercredi 12 novembre 2014

Text formating from multiselect combobox (binding combobox to label) - [Fiddle]

Hi?

I want to format as a list, the text from a multiselect combobox displayed in a label.



Code:




items: [{
xtype:'form',
title: 'Form',
flex: 1.5,
margin: '0 10 0 0',

items:[{
xtype: 'combobox',
name:'itens',
width:230,
multiSelect : true,
store: states,
queryMode: 'local',
displayField: 'value',
valueField: 'value',
bind:'{itens}',
}]

}, {
xtype:'form',
title: 'Viewer',
flex: 3,
margin: '0 10 0 0',

items:[{
xtype: 'label',
bind:'<b>Itens: </b>{itens}</br></br>', //I want to format this result like a list

// xtype: 'displayfield',
// bind:'<b>Itens: </b><ul><li>{itens}</li></ul></br></br>',
}]
}
]

Please, see my code in this fiddle:

http://ift.tt/1EtOoqg




I tried several approaches with css but without success.


I would appreciate suggestions.


Thanks in advance.






Text formating from multiselect combobox (binding combobox to label) - [Fiddle]

Aucun commentaire:

Enregistrer un commentaire