From 22ea27f0027a8d3b842f5fd4a8de0d4ca88781db Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 27 Apr 2019 00:54:14 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets-reference.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index aff75089..1e291717 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -261,6 +261,7 @@ Piano keyboard. |

traversing#

| `boolean` | true | Set to `false` to disable traversing gestures | |

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) | +|

toggles#

| `boolean` | false | Set to `true` to make keys bahave like toggle buttons | |

osc#

|||| |

split#

| `boolean`\|
`string` | false | `true`: the widget's index will be appended to the matrice's osc address

`false`: it will be prepended to the widget's preArgs

`string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)) | @@ -479,6 +480,20 @@ Widget replication with overridable properties. ## Switchers +### state + +Save and recall the state of other widgets. + +| property | type |default | description | +| --- | --- | --- | --- | +|

state#

|||| +|

filter#

| `string`\|
`array` | "" | Only save state from widgets contained in widgets designated by id. If empty, the whole session's state is saved. Switchers are always ignored.
- widget id `string`
- `array` of widget id strings | +|

saveLabel#

| `string` | "Save" | Label for save button | +|

loadLabel#

| `string` | "Load" | Label for load button | +|

horizontal#

| `boolean` | false | Set to `true` to display buttons horizontally | +|

value#

|||| +|

value#

| `object`\|
`string` | "" | - `object`: `"widget_id": VALUE` pairs
- `string`: `"save"` (trigger save action), `"load"` (trigger load action) or `""` (reset value)



Note: the widget's actual value is never `"save"` or `"load"`, it's either an empty string or an object. | + ### switcher Store other widgets' values and recall them.