From 210fbdd8a31cc64a83dba8097f8769b64899c9de Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 15 Mar 2022 08:40:37 +0100 Subject: [PATCH] docs: minor changes --- resources/docs/docs/widgets/scripting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index f802b565..febcddf1 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -2,7 +2,7 @@ Widgets can run [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) scripts upon specific events. These scripts are written in special properties under the scripting category. -!!! warning "Advanced syntaxe" +!!! warning "Advanced syntaxes" Most [advanced syntaxes](../advanced-syntaxes/) should be avoided as much as possible in scripting properties: - `@{}`: use `get()` and `getProp()` instead @@ -23,7 +23,7 @@ This script is called when the widget is created. If the widget has children, it ### `onValue` -This script is called when the widget receives a value. +This script is called when the widget's value updates and when it receives a value. The following variables are available in this context: