From f2f1949053c6e8c93fc5456a57c95bc2e953846c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 22 Aug 2023 00:37:12 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets/properties-reference.md | 2 +- resources/docs/docs/widgets/scripting.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 3aa8bfdc..84837ff6 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -100,7 +100,7 @@ |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`. | |
mode#
| `string` | "toggle" | Interaction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `momentary` (no release, no value sent with the address)
- `tap` (no release, sends `on` as value)

Choices: `toggle`, `push`, `momentary`, `tap` | |
doubleTap#
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap | - |
decoupled#
| `boolean` | false | Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.

When `decoupled`, the button's value is ambiguous: when interacted with, it will send the value that's requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).
- `decoupled (toggle mode that only updates its state when it receives a value from an osc/midi message*)`

From a script property, feedback messages can be simulated with:

`set("widget_id", value, {external: true})` | + |
decoupled#
| `boolean` | false | Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.

When `decoupled`, the button's value is ambiguous: when interacted with, it will send the value that's requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).

From a script property, feedback messages can be simulated with:

`set("widget_id", value, {external: true})` | === "scripting" diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index 394ba49f..75f1c7f7 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -380,4 +380,4 @@ Opens the file file browser and pass selected file to a callback function (does - `extension`: allowed extension (default: "*") - `directory`: starting directory for browser (default: user's home) - `allowDir`: allow choosing a directory instead of a file (default: false) - - `mode`: "save" or "open" + - `mode`: "save" or "open"