Files
Superalgos/Projects/Foundations/Schemas/App-Schema/style-condition.json
T

52 lines
1.5 KiB
JSON

{
"type": "Style Condition",
"level": 4,
"propertyNameAtParent": "styleConditions",
"attachingRules": {
"compatibleTypes": "->Polygon Body->Polygon Border->"
},
"editors": {
"code": true
},
"initialValues": {
"code": ""
},
"childrenNodesProperties": [
{
"name": "style",
"type": "node",
"childType": "Style",
"autoAdd": true
}
],
"menuItems": [
{
"action": "Edit",
"actionFunction": "uiObject.codeEditor.activate",
"label": "Edit",
"iconPathOn": "javascript-code",
"iconPathOff": "javascript-code"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "style",
"actionFunction": "payload.executeAction",
"label": "Add Style",
"relatedUiObject": "Style",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"actionFunction": "payload.executeAction",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity"
}
],
"addLeftIcons": true
}