docs: add some dynamic props markers
This commit is contained in:
parent
9b6c97d122
commit
6cfad849d1
3 changed files with 13 additions and 13 deletions
|
|
@ -22,14 +22,14 @@ Buttons are exactly what you think they are.
|
|||
- default: `false`
|
||||
- usage: set to `true` to display the toggle's state with a led
|
||||
|
||||
### `on`
|
||||
### `on`<i class="md-icon">flash_on</i>
|
||||
- type: `string|number|object`
|
||||
- default: `1`
|
||||
- usage: defines which value is sent on `on` position
|
||||
- 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](./widgets.md#preargs))
|
||||
|
||||
### `off`
|
||||
### `off`<i class="md-icon">flash_on</i>
|
||||
- type: `string|number|object`
|
||||
- default: `0`
|
||||
- usage: defines which value is sent on `off` position
|
||||
|
|
@ -47,14 +47,14 @@ Buttons are exactly what you think they are.
|
|||
}
|
||||
```
|
||||
|
||||
### `on`
|
||||
### `on`<i class="md-icon">flash_on</i>
|
||||
- type: `string|number|object`
|
||||
- default: `1`
|
||||
- usage: defines which value is sent when pushing the button
|
||||
- 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](./widgets.md#preargs))
|
||||
|
||||
### `off`
|
||||
### `off`<i class="md-icon">flash_on</i>
|
||||
- type: `string|number|object`
|
||||
- default: `0`
|
||||
- usage: defines which value is sent when releasing the button
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
|
|||
- usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously.
|
||||
|
||||
|
||||
### `variables`
|
||||
### `variables`<i class="md-icon">flash_on</i>
|
||||
- type: `*`
|
||||
- default: `@{parent.variables}`
|
||||
- usage: defines one or more arbitrary variables that can be inherited by children widgets.
|
||||
|
|
@ -59,7 +59,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
|
|||
- usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array.
|
||||
- note: this only applies when the panel contains widgets, not tabs
|
||||
|
||||
### `noSync`
|
||||
### `noSync`<i class="md-icon">flash_on</i>
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to prevent tab changes from synchronizing between clients that share the same session file
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ All widgets share a set of generic properties described below.
|
|||
- type: `number|percentage`
|
||||
- default: `auto`
|
||||
|
||||
### `color`
|
||||
### `color`<i class="md-icon">flash_on</i>
|
||||
- type: `string`
|
||||
- default: `auto`, inherited accent color
|
||||
- usage: any valid `css` color code is valid, this will change the default accent color for the widget and all its children
|
||||
|
|
@ -58,21 +58,21 @@ All widgets share a set of generic properties described below.
|
|||
## OSC
|
||||
|
||||
|
||||
### `value`
|
||||
### `value`<i class="md-icon">flash_on</i>
|
||||
- type: `*`
|
||||
- default: `empty`
|
||||
- usage: if set, the widget will be initialized with this `value`. This won't affect linked widgets and won't send any osc message.
|
||||
- usage: if set, the widget will be initialized with this `value`. This won't send any osc message unless it is changed because of a property inheritance update initiated by an action that should send osc (e.g. dragging a slider).
|
||||
- note: its `type` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc).
|
||||
|
||||
|
||||
### `precision`
|
||||
### `precision`<i class="md-icon">flash_on</i>
|
||||
- type: `integer|string`
|
||||
- default: `2`
|
||||
- usage: the `precision` property defines the number of decimals to display and to send.
|
||||
- set to `0` to send `integers` only.
|
||||
- a specific data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals
|
||||
|
||||
### `target`
|
||||
### `target`<i class="md-icon">flash_on</i>
|
||||
- type: `array`
|
||||
- default: `[]`
|
||||
- usage:
|
||||
|
|
@ -84,7 +84,7 @@ All widgets share a set of generic properties described below.
|
|||
- if no target is set (empty array `[]`), messages can still be sent if the server has defaults targets (`-s / --send`)
|
||||
- to disable osc regardless of the previous point, set `target` to `[null]`
|
||||
|
||||
### `address`
|
||||
### `address`<i class="md-icon">flash_on</i>
|
||||
- type: `string`
|
||||
- default: `/widgets_id`
|
||||
- usage: this is the `address` of the osc messages sent by the widget, it must start with a `/`
|
||||
|
|
@ -97,7 +97,7 @@ All widgets share a set of generic properties described below.
|
|||
/touch/address [preArgs] 0/1
|
||||
```
|
||||
|
||||
### `preArgs`
|
||||
### `preArgs`<i class="md-icon">flash_on</i>
|
||||
- type: `array`
|
||||
- default: `[]`
|
||||
- usage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue