Bpc Text Field

The BPC provides a text field that offers additional functionalities.

Use

To use the field, only a component with the xtype bpcTextField must be created.

Empty Icon

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

To activate emptyIconCls, it is necessary to use the plugin bpcInputField in the component so that a placeholder for the icon can be created.

This references an Font Awesome icon which is displayed with the emptyText if the value of the combo box is empty.

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

Keywords: