From e3b7edd89533b2b27ed7c512cbfc3f420859c7d1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 19 Oct 2022 16:24:17 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets/properties-reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 5158dd11..f3f13664 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -98,8 +98,9 @@ | --- | --- | --- | --- | |
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message. Ignored if `mode` is `momentary`. | |
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)
- `decoupled (toggle mode that only updates its state when it receives a value from an osc/midi message*)`

When `decoupled`, the button's value is ambiguous: when clicked, it will send the value that's requested, otherwise it will return the value received from the feedback message.

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

`set("widget_id", value, {external: true})`

Choices: `toggle`, `push`, `momentary`, `tap`, `decoupled` | + |
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 intercated 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})` | === "scripting"