dropdown: add sendKey option

This commit is contained in:
jean-emmanuel 2018-02-02 21:27:36 +01:00
parent 5dee11abdc
commit a80a559eb1
3 changed files with 16 additions and 1 deletions

View file

@ -72,6 +72,7 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
## Switch
```js
{
type:'switch',
@ -105,3 +106,8 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
- usage:
- `array` of possible values to switch between : `[1,2,3]`
- `object` of `"label":value` pairs
### `sendKey`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the dropdown send its selected value's key/index as value. Either way, the dropdown's value can be set using it's value or the associated key/index.