Added resources.json and view.json files
This commit is contained in:
parent
d00b47ea1d
commit
02cb3575c2
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 74 B |
@ -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;"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user