HTML-Rendered Combo Box
The BPC provides a combo box that can display HTML-rendered values. This is used when you want icons to be displayed in the combo box.
Usage
To use this field, simply create a component with the xtype bpcComboRenderedValue.
The ` store ` attribute contains an array of objects, each of which contains a value and HTML content.
The ` displayField ` references the attribute in the store that contains the HTML content to be rendered. This allows the user to see the icons.
Ext.create(
{ // The fields
xtype : "bpcComboRenderedValue",
valueField: "value",
displayField: "attr",
store: [{
attr: "<span class=' fa fa-trash'>clock</span>",
value: "foo"
}, {
attr: "<span class=' fa fa-times'>click</span>",
value: "bar"
}]
});
Keywords: