script: fix script prop doc

This commit is contained in:
bordun 2020-04-06 14:46:08 +02:00
parent 3240f694fd
commit 15904133f3
2 changed files with 5 additions and 3 deletions

View file

@ -99,7 +99,7 @@ class Widget extends EventEmitter {
'When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)',
'When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending)'
]},
script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s receives the defined event. See <a href="https://openstagecontrol.ammd.net/v1/docs/widgets/scripting/">documentation</a>.'},
script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s value updates. See <a href="https://openstagecontrol.ammd.net/v1/docs/widgets/scripting/">documentation</a>.'},
_osc: 'osc',

View file

@ -19,7 +19,7 @@ class Script extends Widget {
_script: 'script',
event: {type: 'string', value: 'value', choices: ['value', 'keyboard'], help: 'Define which events trigger the script\'s execution.'},
script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s receives the defined event. See <a href="https://openstagecontrol.ammd.net/v1/docs/widgets/scripting/">documentation</a>.'},
script: {},
_eventKey: 'event: keyboard',
@ -35,7 +35,9 @@ class Script extends Widget {
'_geometry', 'left', 'top', 'width', 'height', 'expand',
'_style', 'colorText', 'colorWidget', 'colorFill', 'colorStroke', 'alphaStroke', 'alphaFillOn', 'alphaFillOff', 'padding', 'css'
])
], {
script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s receives the defined event. See <a href="https://openstagecontrol.ammd.net/v1/docs/widgets/scripting/">documentation</a>.'},
})
}