From b6023529f1e769a49f868c092c47cf197cd08c3f Mon Sep 17 00:00:00 2001 From: bordun Date: Fri, 17 Apr 2020 12:16:43 +0200 Subject: [PATCH] docs: scripting: "self" id --- resources/docs/docs/widgets/scripting.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index 0f5ec909..a70532cc 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -32,14 +32,17 @@ Besides the variables available in the [javascript property syntax ](./advanced- ---- #### `get`: `function(id)` +- `id`: widget `id` as a string. -Returns the value of the first widget whose id is `"id"`. +Returns the value of the first matching widget. ---- #### `set`: `function(id, value)` +- `id`: widget `id` as a string. Can be `"self"` to target the host widget directly. +- `value`: new value for the widget. -Sets the value of the first widget whose id is `"id"`. +Sets the value of the first matching widget. If the event that triggered the script's execution was initiated by a user interaction, this will make the widget send its value as well. ----