widgets: add input widget to replace former jquery implementation
This commit is contained in:
parent
2d4c4588a7
commit
53c3ed7a35
20 changed files with 442 additions and 253 deletions
27
resources/docs/widgets/inputs.md
Normal file
27
resources/docs/widgets/inputs.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# inputs
|
||||
|
||||
## Input
|
||||
|
||||
|
||||
```js
|
||||
{
|
||||
type:'input',
|
||||
// etc
|
||||
}
|
||||
```
|
||||
|
||||
### `widgetId`
|
||||
- type: `object`
|
||||
- default: `empty`
|
||||
- usage: a widget's `id` whose value will be linked to the input
|
||||
|
||||
|
||||
### `horizontal`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to display the input horizontally
|
||||
|
||||
### `unit`
|
||||
- type: `string`
|
||||
- default: `empty`
|
||||
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
|
||||
|
|
@ -13,6 +13,10 @@ Pads are multidimensional widgets that output multiple values.
|
|||
}
|
||||
```
|
||||
|
||||
### `input`
|
||||
- type: `boolean`
|
||||
- default: `true`
|
||||
- usage: set to `false` to hide the built-in input
|
||||
|
||||
### `rangeX`
|
||||
- type: `object`
|
||||
|
|
@ -131,6 +135,10 @@ RGB is a variant of XY, it outputs rgb values between 0 and 255.
|
|||
}
|
||||
```
|
||||
|
||||
### `input`
|
||||
- type: `boolean`
|
||||
- default: `true`
|
||||
- usage: set to `false` to hide the built-in input
|
||||
|
||||
### `precision`
|
||||
- default:`0`
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@ Sliders are unidimensional widgets that output one value at a time.
|
|||
- default: `true`
|
||||
- usage: set to `false` to hide the scale
|
||||
|
||||
### `input`
|
||||
- type: `boolean`
|
||||
- default: `true`
|
||||
- usage: set to `false` to hide the built-in input
|
||||
|
||||
### `compact`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
|
|
@ -121,6 +126,11 @@ range: {
|
|||
- default: `true`
|
||||
- usage: set to `false` to hide the scale
|
||||
|
||||
### `input`
|
||||
- type: `boolean`
|
||||
- default: `true`
|
||||
- usage: set to `false` to hide the built-in input
|
||||
|
||||
### `compact`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue