- added generic value option for setting a widget's initial value
- **text** widget's `defaultText` replaced with `value`
This commit is contained in:
parent
7c01444e21
commit
4e8ca970a9
18 changed files with 36 additions and 12 deletions
|
|
@ -71,12 +71,18 @@ A widget object is a javascript object. All widgets share a set of generic prope
|
|||
### OSC
|
||||
|
||||
|
||||
#### `value`
|
||||
- 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.
|
||||
- note: its `type` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc)
|
||||
|
||||
|
||||
#### `precision`
|
||||
- type: `integer`
|
||||
- default: `2`
|
||||
- usage: the `precision` property defines the number of decimals to display and to send. Set to `0` to send `integers` only.
|
||||
|
||||
|
||||
#### `target`
|
||||
- type: `array`
|
||||
- default: `[]`
|
||||
|
|
|
|||
|
|
@ -167,12 +167,6 @@ Text displays incoming values (via osc) as text. Sending a message with no argum
|
|||
- default: `false`
|
||||
- usage: set to `true` display vertically
|
||||
|
||||
#### `defaultText`
|
||||
- type: `string`
|
||||
- default: `empty`
|
||||
- usage: default text to be displayed. If not set, `label` or `id` is used
|
||||
|
||||
|
||||
## Meter
|
||||
|
||||
Meter displays incoming numerical values (via osc) as a gauge level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue