Color Input
Color picker with optional opacity

{
"type": "ColorOpacityInput",
"properties": {
"labelName": "Button Color",
"bindingPropertyName": "buttonColor",
"allowCheckbox": false,
"hasOpacity": false
}
}The parent property name needs to match the string specified in bindingPropertyName property. In this example the parent property name is "buttonColor"
{
"buttonColor": {
"type": "solid",
"color": [
{
"color": "#22ee33",
"alpha": 1,
"ratio": 0
}
],
"rotation": 0,
"enabled": true
}
}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.
Configurable properties
Last updated
Was this helpful?