dropdown: make values dynamic, drop unreleased support for sendKey and receiving key (issue #140)

This commit is contained in:
jean-emmanuel 2018-02-07 09:49:21 +01:00
parent 52f33892a1
commit 6c34c71975
4 changed files with 59 additions and 48 deletions

View file

@ -100,14 +100,10 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
}
```
### `values`
### `values`<i class="md-icon" title="dynamic">flash_on</i>
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- 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.
- an empty option will always be prepended to `values` (sends an osc message without any value)