The default color value to set when creating this action/feedback/instance Can be a color string or a color number Valid strings are CSS color strings in Hex, RGB, HSL or HSV notation with or without alpha Valid numbers are 0x0 - 0xffffffff, where the components are ttrrggbb, you can generate the number with combineRgb()
'#f00'
'#ff0000'
'#ff0000ff'
'rgb(255,0,0)
'rgba(255, 0, 0, 1.0)
'hsl(0, 100, 50)'
'hsv(0, 100, 100)'
0xff0000
Optional
enableThis will enable a alpha entry slider and input
The unique id of this input field within the input group
Optional
isThis will be removed in 2.0.0 of this api. Use isVisibleExpression
instead.
A function called to check whether this input should be visible, based on the current options selections within the input group
Note: This function must not depend on anything outside of its scope. If it does it will fail to compile and will be skipped.
Note: If both this and isVisibleExpression
are provided, isVisibleExpression
will take precedence.
Optional
isOptional
isA companion expression to check whether this input should be visible, based on the current options selections within the input group
This is the same syntax as other expressions written inside of Comapnion.
You can access a value of the current options using $(options:some_field_id)
.
This does not support the isVisibleData
property, let us know if you need this.
Note: If both this and isVisible
are provided, this will take precedence.
The label of the field
Optional
presetIf set, this will override the default colors shown in the swatch. Enter an array of either color strings or objects with color strings and titles
Optional
returnSpecify if you want the colorpicker returning it's value as a CSS string or as a color number. This will also be the format stored in the database for this value
Optional
tooltipA hover tooltip for this field
The type of this input field
A colour picker input
Available for actions/feedbacks/config Has three optional configuration properties:
enableAlpha
will show the colour picker with an additional alpha entryreturnType
do you want to get the results as CSS string or Companion color numberpresetColors
replace the default swatch with your own colors when setExample