ColorPickerΒΆ
-
/libs/granite/ui/components/foundation/form/colorpicker
Colorpicker is a component that allows the user to pick predefined colors. The colors can be defined by configuring the sub-nodes with colors configuration.
It extends
Field
component.It has the following content structure:
-
granite:FormColorPicker
- granite:FormField
- idstring
The id attribute.
- relstring
The class attribute. This is used to indicate the semantic relationship of the component similar to
rel
attribute.
- classstring
The class attribute.
- titlestring
- i18n
The title attribute.
- namestring
The name that identifies the field when submitting the form.
- valuestringel
The value of the field.
- disabledboolean
Indicates if the field is in disabled state.
- requiredboolean
Indicates if the field is mandatory to be filled.
- validationstring
- multiple
The name of the validator to be applied. E.g.
foundation.jcr.name
. See validation in Granite UI.
- classicPaletteTypeboolean
Displays the classic mode with palette shades.
- freestylePaletteTypeboolean
Displays the freestyle mode without palette shades.
- editTypeboolean
Displays edit mode for selected color.
-
granite:FormColorPicker