105 lines
2.3 KiB
Plaintext
105 lines
2.3 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"ch": 1,
|
|
"current_op": 2,
|
|
"new_op": 2
|
|
},
|
|
"propConfig": {
|
|
"params.ch": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.current_op": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.new_op": {
|
|
"paramDirection": "inout",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 75,
|
|
"width": 75
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "32px"
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"ch": "{view.params.ch}",
|
|
"val": "{view.params.current_op}"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\ttitle \u003d \"CH{:02d}\".format(value[\u0027ch\u0027]) + \" - \" + \"{:02d}\".format(value[\u0027val\u0027])\n\treturn title",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"events": {
|
|
"system": {
|
|
"onStartup": {
|
|
"config": {
|
|
"script": "\tself.view.params.new_op \u003d self.view.params.current_op"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "NumericEntryField"
|
|
},
|
|
"position": {
|
|
"basis": "32px"
|
|
},
|
|
"propConfig": {
|
|
"props.value": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"path": "view.params.new_op"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"inputBounds": {
|
|
"maximum": 48,
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"type": "ia.input.numeric-entry-field"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |