BPC Text Field

The BPC provides a text field that offers additional functionality.

Usage

To use the field, simply create a component with the xtype bpcTextField.

Empty Icon

In addition to the emptyText attribute, an emptyIconCls (for example, x-fal fa-save) can be specified.

To enable the emptyIconCls, you must use the bpcInputField plugin in the component so that a placeholder for the icon can be created.

This references a Font Awesome icon that is displayed with the emptyText when the combo box value is empty.

bpcTextFieldEmptyIcon
  Ext.create({
                  xtype: "bpcTextField",
                  fieldLabel : "Text Label",
                  plugins: [
                    {
                      ptype: "bpcInputField"
                    }
                  ],
                  emptyText : "empty",
                  emptyIconCls : "x-fal fa-save"
    })

Keywords: