docs: show JS{{}}
This commit is contained in:
parent
81bf97a85f
commit
6095f17d9d
1 changed files with 2 additions and 2 deletions
|
|
@ -103,11 +103,11 @@ Additionnal functions:
|
|||
A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.
|
||||
|
||||
|
||||
<!-- ## Javascript: `JS{{}}`
|
||||
## Javascript: `JS{{}}`
|
||||
|
||||
This syntax allows writing formulas in pure javascript. The code will be compiled as a function and executed a restricted context.
|
||||
|
||||
- if no `return` statement is found, the formula will return an empty string
|
||||
- javascript [strict mode](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Strict_mode) is always enabled
|
||||
- `setTimeout` and `setInterval` functions are not available
|
||||
- the `global` object is shared between all javascript formulas (changing its properties *does not* trigger any synchronisation even if the value is used somewhere else) -->
|
||||
- the `global` object is shared between all javascript formulas (changing its properties *does not* trigger any synchronisation even if the value is used somewhere else)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue