scripting: send() now ignores the widget's bypass property (allows bypassing default messages and define custom ones).

This commit is contained in:
bordun 2020-10-28 10:36:08 +01:00
parent 3b269fafc4
commit 6e3644d9af
3 changed files with 4 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- widgets
- all: add `html` property to allow inserting custom content in widgets (label, value, etc) and style it with the `css` property.
- scripting: `send()` now ignores the widget's `bypass` property (allows bypassing default messages and define custom ones).
- custom module
- automatically reload custom module when the file is modified

View file

@ -79,6 +79,8 @@ If the event that triggered the script's execution was initiated by a user inter
If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
This function ignores the widget's `bypass` property.
----
#### `getProp(id, name)`

View file

@ -100,7 +100,7 @@ class ScriptVm extends Vm {
var widget = this.getWidget()
if (widget.builtIn) widget = widget.parent
widget.sendValue(overrides)
widget.sendValue(overrides, {force: true})
}