Actions

Color form field type

From Joomla! Documentation

Provides a color picker. Enter the color as #ff00ff or pick it from the palet.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be chromestyle.
  • default (optional) provides a color when not set.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) tooltip for the form field.


Example XML Definition

<field name="backgroundcolor" type="color" default="#eee"
        label="TPL_BEEZ3_FIELD_HEADER_BACKGROUND_COLOR_LABEL"
        description="TPL_BEEZ3_FIELD_HEADER_BACKGROUND_COLOR_DESC" />