Hi,
We’re trying to add various validation rules to our component’s schema. How can we enforce a color as input to a specific property like how it is done on the LED Display component and get the nice color selector popup?
Here is the schema I’m playing with:
{
"type": "object",
"properties": {
"color": {
"type": "string",
"description": "A color to use to render the component.",
"default": "#0F0"
},
"style": {
"$ref": "urn:ignition-schema:schemas/style-properties.schema.json",
"default": {
"classes": ""
}
}
}
}
Is there a $ref for colors?
Thanks,
Dillon