docs: minor changes

This commit is contained in:
jean-emmanuel 2022-03-15 08:40:37 +01:00
parent 1f9ddedcb8
commit 210fbdd8a3

View file

@ -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: