Color Input

Color picker with optional opacity

This element has a number of configurable properties. If a property has a default value then you do not need to provide it in the propertyPanel.json file unless you want to specify a value different to the default.

circle-info

Color is an array in preparation for supporting gradient colours. This is not currently implemented so your color state defintion needs to be an array of just 1 colour object

Configurable properties

chevron-rightbindingPropertyNamehashtag

string - the parent property name from defaultState with which to connect to.

mandatory

chevron-rightallowCheckboxhashtag

bool - specifies whether you want a checkbox to the left of the colour picker.

The checkbox is bound to parentProperty.enabled

defaults to true

chevron-righthasOpacityhashtag

bool - specifies whether you want the opacity input box to appear to the right of the colour picker

defaults to true

chevron-rightdisabledhashtag

bool - if set to true this will disable the input box for interaction

defaults to false

Last updated

Was this helpful?