log/doc: clone widget

This commit is contained in:
jean-emmanuel 2017-07-30 12:46:13 +02:00
parent 6da5d689cd
commit 877a13a508
3 changed files with 23 additions and 2 deletions

View file

@ -13,6 +13,7 @@
- buttons: new `dropdown` widget;
- toggle: added `led` option to choose between the old appearance and the new one
- new `input` widget
- containers: new `clone` widgets
- added support for `"self"` value in `target` option (sends the message back to the clients, useful for sending `/EDIT` messages...)
- editor
- option fields are now multiline (`ctrl + enter` to add a new line), and pretty printed

View file

@ -123,3 +123,18 @@ Modals are buttons that turn into a centered popup panels when enabled. They can
### `options`
- see panel's [`options`](#panel)
## Clone
```js
{
type:'clone',
// etc
}
```
### `widgetId`
- type: `string`
- default: `empty`
- usage: `id` of the widget to clone

View file

@ -10,6 +10,11 @@ Plots are tools that display other widgets' state or incomming osc messages. The
}
```
### `widgetId`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be mapped to the led's color opacity
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
@ -137,7 +142,7 @@ The visualizer displays the evolution in time of a received value (through osc)
```
### `widgetId`
- type: `object`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be displayed (thus bypassing the incoming osc)
@ -173,7 +178,7 @@ Text displays incoming values (via osc) as text. Sending a message with no argum
```
### `widgetId`
- type: `object`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be displayed