{ "type": "Votes Switch", "menuItems": [ { "action": "Configure", "actionFunction": "uiObject.configEditor.activate", "label": "Configure", "iconPathOn": "configuration", "iconPathOff": "configuration" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add Votes Switch", "relatedUiObject": "Votes Switch" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add Position Vote", "relatedUiObject": "Position Vote" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add Asset Vote", "relatedUiObject": "Asset Vote" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add Feature Vote", "relatedUiObject": "Feature Vote" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add Time Vote", "relatedUiObject": "Time Vote" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", "label": "Add User Vote", "relatedUiObject": "User Vote" }, { "action": "Delete UI Object", "askConfirmation": true, "confirmationLabel": "Confirm to Delete", "label": "Delete", "iconPathOn": "delete-entity", "iconPathOff": "delete-entity", "actionFunction": "payload.executeAction" } ], "editors": { "config": true }, "initialValues": { "config": "{\n \"description\": \"\"\n}" }, "addLeftIcons": true, "level": 2, "attachingRules": { "compatibleTypes": "->Votes Distribution->Votes Switch->" }, "propertyNameAtParent": "votesSwitch", "childrenNodesProperties": [ { "name": "votesSwitch", "type": "array", "childType": "Votes Switch", "autoAdd": false }, { "name": "assetVotes", "type": "array", "childType": "Asset Vote", "autoAdd": false }, { "name": "featureVotes", "type": "array", "childType": "Feature Vote", "autoAdd": false }, { "name": "timeVotes", "type": "array", "childType": "Time Vote", "autoAdd": false }, { "name": "positionVotes", "type": "array", "childType": "Position Vote", "autoAdd": false }, { "name": "userVotes", "type": "array", "childType": "User Vote", "autoAdd": false } ], "icon": "bitcoin" }