From 8c77ab7ca6d63d8b99b1f9891e0b681781bc48ec Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 17 Jan 2024 16:43:22 +0100 Subject: [PATCH] docs: update ref --- resources/docs/docs/widgets/properties-reference.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index f6a08f1f..42d057fd 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -75,7 +75,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
onCreate#
| `script` | "" | Script executed when the widget is created. See documentation. | + |
onCreate#
| `script` | "" | Script executed when the widget (and its children) is created. See documentation. | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation. | ## Basics @@ -191,7 +191,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
asYouType#
| `boolean` | false | Set to `true` to make the input send its value at each keystroke | - |
numeric#
| `boolean` | false | Set to `true` to allow numeric values only and display a numeric keyboard on mobile devices | + |
numeric#
| `boolean`|
`number` | false | Set to `true` to allow numeric values only and display a numeric keyboard on mobile devices

Can be a number to specify the stepping value for mousewheel interaction (only when the input is focused). | |
validation#
| `string` | "" | Regular expression: if the submitted value doesn't match the regular expression, it will be reset to the last valid value.

If leading and trailing slashes are omitted, they will be added automatically and the flag will be set to "gm"

Examples:
- `^[0-9]*$` accepts digits only, any number of them
- `/^[a-zs]{0,10}$/i` accept between 0 and 10 alphabetic characters and spaces (case insensitive) | |
maxLength#
| `number` | "" | Maximum number of characters allowed | @@ -468,6 +468,12 @@ | --- | --- | --- | --- | |
value#
| `integer`|
`array` | "" | If the panel contains tabs, its value defines which tab is selected selected (by index, starting with 0).

If the panel contains widgets and `scroll` is `true`, its value is an array that contains the scrolling state between 0 and 1 for the x and y axis. | + === "scripting" + + | property | type |default | description | + | --- | --- | --- | --- | + |
onPreload#
| `script` | "" | Script executed before any other widget is created. See documentation. | + === "children" | property | type |default | description | @@ -794,6 +800,7 @@ | property | type |default | description | | --- | --- | --- | --- | + |
onCreate#
| `script` | "" | Script executed when the widget is created. See documentation. | |
onValue#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | |
onTouch#
| `script` | "" | Script executed when the widget is touched and released, and when the pointer moves when the widget is touched. See documentation. | |
onDraw#
| `script` | "" | Script executed when the widget is redrawn. See documentation. | @@ -940,6 +947,7 @@ | property | type |default | description | | --- | --- | --- | --- | + |
onCreate#
| `script` | "" | Script executed when the widget is created. See documentation. | |
onKeyboard#
| `script` | "" | Script executed whenever the widget receives a keyboard event if `keyBinding` is set). See documentation. | |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation).

If the editor is enabled, some keys / combos will not work.

To process all keystroke events, write `['']` | |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |