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

Example XML Definition:

<field name="backgroundcolor" 
type="color"
default="#eee"
format="rgba"
label="Background Color" />

Parameters

Mandatory Parameters

  • name is the unique name of the parameter
  • type must be color
  • label (translatable) is the descriptive title of the field

Optional Parameters

  • default: provides a color when not set
  • format: allows you to select the type of colour format, you can select rgb, rgba, hex
  • description: (translatable) tooltip for the form field