From ff85bdc8e716165d51e548591bfe8a0366e2330c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 25 Jun 2019 15:15:39 +0200 Subject: [PATCH] update docs --- resources/docs/docs/widgets-reference.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index 934fcb26..83a4b2a0 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -145,6 +145,7 @@ A fader with two heads for setting a range. |

on#

| `*` | 1 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | |

off#

| `*` | 0 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | |

norelease#

| `boolean` | false | Set to `true` to prevent sending any osc message when releasing the button | +|

afterTouch#

| `string` | "" | Send afterTouch value to this osc address (between 0 and 1) | ### switch @@ -461,6 +462,7 @@ A toggle button that opens a popup panel. Cannot contain tabs directly. | | `number`\|
`percentage` | "80%" | Modal popup's size | | | `number`\|
`percentage` | "auto" | Modal popup's position | | | `number`\|
`percentage` | "auto" | Modal popup's position | +| | `boolean` | true | Set to `false` to disable scrollbars | | |||| | | `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened | | |||| @@ -549,7 +551,7 @@ Evaluates a script each time it receives a value. | --- | --- | --- | --- | |

script#

|||| |

condition#

| `string` | 1 | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:
- `value`: the value received by the widget | -|

script#

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value



* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution | +|

script#

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: value received by the widget
- `id`: id of the widget that triggered the script
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value
- `get(id)`: function for getting a widget's value (dynamic equivalent of @{id})
- `getProp(id, property)`: function for getting a widget's property value ((dynamic equivalent of @{id.property})



* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution | ### gyroscope