HTML Rendered Combo box

The BPC provides a combo box that can display HTML rendered values. This is used when it is desired that icons can be displayed in the combo box.

Usage

To use the field, only a component with the xtype bpcComboRenderedValue must be created. The store attribute contains an array of objects in which each entry contains a value and HTML content. The displayField references the attribute in the store in which the HTML content to be rendered is located. The user therefore sees 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: