Skip to main content

Color

Choose colours using an interactive colour palette.

Dependencies

This helper requires PulsarFormComponent to be included in your JavaScript.

#

Basic usage

{{
form.color({
'label': 'Pick colour',
'id': 'color-a1'
})
}}

Helper options

You can configure this helper using the common helper options.

Disabled state

Add the 'disabled': true option to disable the field on load. See the disabling elements guide for more information about how to disable elements via javascript. Provide help text or information within the UI where possible to explain why elements are disabled.

#
{{
form.color({
'label': 'Pick colour',
'id': 'color-a2',
'disabled': true
})
}}