From 187e35d766af01c8b107baa9ff6381a04162d1b9 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 1 Apr 2020 13:48:55 +0200 Subject: [PATCH] doc: script var id & value --- resources/docs/docs/scripting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/docs/docs/scripting.md b/resources/docs/docs/scripting.md index 6dd689d9..a8756908 100644 --- a/resources/docs/docs/scripting.md +++ b/resources/docs/docs/scripting.md @@ -6,6 +6,10 @@ The `script` property allows widgets to run javascript code when their value upd ## Available variables +#### `value`: widget's value + +#### `id`: id of the widget that's reponsible for the value update + #### `get`: `function(id)` Returns the value of the first widget whose id is `"id"`.