docs: mention switch workaround for values order with numeric keys (#330)

This commit is contained in:
jean-emmanuel 2018-07-21 09:12:59 +02:00
parent c9817de91f
commit 4b690a2340

View file

@ -84,7 +84,7 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
- default: `{"Value 1":1,"Value 2":2}`
- usage:
- `array` of possible values to switch between : `[1,2,3]`
- `object` of `"label":value` pairs
- `object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept.
### `showValues`
- type: `boolean`
@ -105,5 +105,5 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
- default: `{"Value 1":1,"Value 2":2}`
- usage:
- `array` of possible values to switch between : `[1,2,3]`
- `object` of `"label":value` pairs
- an empty option will always be prepended to `values` (sends an osc message without any value)
- `object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept.
- an empty option will always be prepended to `values` (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css`