From 877a13a508fca1ecb5ee6f18d3ca7b6c245188bb Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 30 Jul 2017 12:46:13 +0200 Subject: [PATCH] log/doc: clone widget --- CHANGELOG.md | 1 + resources/docs/widgets/containers.md | 15 +++++++++++++++ resources/docs/widgets/plots.md | 9 +++++++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 536bfd8d..12b823ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/resources/docs/widgets/containers.md b/resources/docs/widgets/containers.md index 9c50ca7e..6951a793 100644 --- a/resources/docs/widgets/containers.md +++ b/resources/docs/widgets/containers.md @@ -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 diff --git a/resources/docs/widgets/plots.md b/resources/docs/widgets/plots.md index 7d27ed49..74447bc9 100644 --- a/resources/docs/widgets/plots.md +++ b/resources/docs/widgets/plots.md @@ -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