Color form field type

From Joomla! Documentation

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎Nederlands

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 color.
  • default (optional) provides a color when not set.
  • format (optional) allows you to select the type of colour format, you can select rgb, rgba, hex.
  • 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" format="rgba"