From ff996207469b173b4c1a8fc68bba373cce85f2cf Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 21 Mar 2021 19:16:41 +0100 Subject: [PATCH] docs: update --- .../docs/docs/widgets/properties-reference.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 7e4248b8..fb838d7c 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -53,7 +53,6 @@ |
value#
| `*` | "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax | |
default#
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. | |
linkId#
| `string`|
`array` | "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.

When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)

When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) | - |
script#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | === "osc" @@ -67,6 +66,13 @@ |
target#
| `string`|
`array`|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:portA", "ip:portB"]`
- If midi is enabled, targets can be `midi:device_name`
- If no target is set, messages can still be sent if the server has default targets | |
ignoreDefaults#
| `boolean` | false | Set to `true` to ignore the server's default targets | |
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message | + + +=== "scripting" + + | property | type |default | description | + | --- | --- | --- | --- | + |
script#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | ## Basics ??? api "
button#
" @@ -746,7 +752,7 @@ |
forth#
| `*` | 1 | Defines which value is sent when rotating the encoder clockwise | |
release#
| `number` | "" | Defines which value is sent when releasing the encoder:
- Set to `null` to send send no argument in the osc message
- Can be an `object` if the type needs to be specified | - === "value" + === "scripting" | property | type |default | description | | --- | --- | --- | --- | @@ -783,12 +789,12 @@ ??? api "
script#
" Evaluates a script each time it receives a value. - === "script" + === "scripting" | property | type |default | description | | --- | --- | --- | --- | - |
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard`, `once` | |
script#
| `script` | "" | Script executed whenever the widget's receives the defined event. See documentation. | + |
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard`, `once` | |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | |
keyType#
| `string` | "keydown" | Determines which key event trigger the script's execution

Choices: `keydown`, `keyup`, `both` |