Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild

This commit is contained in:
Willy-JL
2025-03-26 11:28:08 +00:00
26 changed files with 344 additions and 126 deletions

View File

@@ -1,6 +1,5 @@
# js_gui__text_input {#js_gui__text_input}
# Text input GUI view {#js_gui__text_input}
# Text input GUI view
Displays a keyboard.
<img src="text_input.png" width="200" alt="Sample screenshot of the view" />
@@ -16,23 +15,23 @@ This module depends on the `gui` module, which in turn depends on the
recommended to conceptualize these modules first before using this one.
# Example
For an example refer to the `gui.js` example script.
For an example, refer to the `gui.js` example script.
# View props
## `minLength`
Smallest allowed text length
The shortest allowed text length.
Type: `number`
## `maxLength`
Biggest allowed text length
The longest allowed text length.
Type: `number`
Default: `32`
## `header`
Single line of text that appears above the keyboard
A single line of text that appears above the keyboard.
Type: `string`
@@ -48,7 +47,7 @@ Type: `boolean`
# View events
## `input`
Fires when the user selects the "save" button and the text matches the length
Fires when the user selects the "Save" button and the text matches the length
constrained by `minLength` and `maxLength`.
Item type: `string`