Hi!
I have created a perspective component that has a dynamic number of elements (like a multistate button). I have some questions regarding it's props:
-
In the designer, when I click the + button next to the prop, how do I make it so that by default it add another object with the same shcema? For example below is the multistate button's state prop where if you click the + button, item 3 appears by default
-
How do I bring up the style selection tray in a child object (like the selectedStyle item shown above). My attemp is as below:
"styleConfig": {
"type": "array",
"description": "An array of styles",
"default": [
{
"iconStyle": {
"$ref": "urn:ignition-schema:schemas/style-properties.schema.json"
}
},
{
"iconStyle": {
"$ref": "urn:ignition-schema:schemas/style-properties.schema.json"
}
}
]
}
but it just come out like this:
there are no icon to bring up the style selection tray
- Is it possible to apply the "visibleWhen" property a styling prop? Below is how I try to do it and it always appears:
"buttonStyle": {
"$ref": "urn:ignition-schema:schemas/style-properties.schema.json",
"default": {
"classes": ""
},
"visibleWhen": {
"property": "buttonType",
"equals": "user"
}
}