diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/resource.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/resource.json new file mode 100644 index 0000000..1bfe05f --- /dev/null +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/resource.json @@ -0,0 +1,17 @@ +{ + "scope": "G", + "version": 1, + "restricted": false, + "overridable": false, + "files": [ + "view.json", + "thumbnail.png", + "ss-button.svg" + ], + "attributes": { + "lastModification": { + "actor": "admin", + "timestamp": "2025-05-24T18:00:00Z" + } + } +} \ No newline at end of file diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/thumbnail.png b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/thumbnail.png new file mode 100644 index 0000000..3375b72 Binary files /dev/null and b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/thumbnail.png differ diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/view.json new file mode 100644 index 0000000..7df1dae --- /dev/null +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/Symbol-Views/Equipment-Views/RFID/SS_button/view.json @@ -0,0 +1,67 @@ +{ + "custom": { + "SSState": 0 + }, + "params": { + "tagPath": "" + }, + "propConfig": { + "props.style.classes": { + "binding": { + "type": "property", + "config": { + "path": "view.custom.SSState", + "transforms": [ + { + "type": "map", + "inputType": "scalar", + "outputType": "style-list", + "mappings": [ + { "input": 0, "output": "Buttons/SS-Stop" }, + { "input": 1, "output": "Buttons/SS-Start" } + ], + "fallback": "Buttons/SS-Stop" + } + ] + } + } + } + }, + "props": { + "style": { "cursor": "pointer" } + }, + "root": { + "type": "ia.container.coord", + "props": { + "aspectRatio": "1:1", + "mode": "percent" + }, + "children": [ + { + "type": "ia.container.image", + "props": { + "source": { + "type": "file", + "path": "SS_button/ss-button.svg" + }, + "style": { + "width": "100%", + "height": "100%" + } + }, + "events": { + "onClick": { + "type": "propertyChange", + "config": { + "property": "custom.SSState", + "value": { + "type": "script", + "script": "return !self.custom.SSState;" + } + } + } + } + } + ] + } +} \ No newline at end of file