From 6cfad849d1ec6bd00b52530d7f1069c61cd5a1e7 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 6 Feb 2018 15:16:23 +0100 Subject: [PATCH] docs: add some dynamic props markers --- resources/docs/widgets/buttons.md | 8 ++++---- resources/docs/widgets/containers.md | 4 ++-- resources/docs/widgets/widgets.md | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/docs/widgets/buttons.md b/resources/docs/widgets/buttons.md index ca67d940..97f0dcdc 100644 --- a/resources/docs/widgets/buttons.md +++ b/resources/docs/widgets/buttons.md @@ -22,14 +22,14 @@ Buttons are exactly what you think they are. - default: `false` - usage: set to `true` to display the toggle's state with a led -### `on` +### `on`flash_on - type: `string|number|object` - default: `1` - usage: defines which value is sent on `on` position - set to `null` to send send no argument in the osc message - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs)) -### `off` +### `off`flash_on - type: `string|number|object` - default: `0` - usage: defines which value is sent on `off` position @@ -47,14 +47,14 @@ Buttons are exactly what you think they are. } ``` -### `on` +### `on`flash_on - type: `string|number|object` - default: `1` - usage: defines which value is sent when pushing the button - set to `null` to send send no argument in the osc message - can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs)) -### `off` +### `off`flash_on - type: `string|number|object` - default: `0` - usage: defines which value is sent when releasing the button diff --git a/resources/docs/widgets/containers.md b/resources/docs/widgets/containers.md index 9af6c8a2..1148d8b5 100644 --- a/resources/docs/widgets/containers.md +++ b/resources/docs/widgets/containers.md @@ -36,7 +36,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously. -### `variables` +### `variables`flash_on - type: `*` - default: `@{parent.variables}` - usage: defines one or more arbitrary variables that can be inherited by children widgets. @@ -59,7 +59,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array. - note: this only applies when the panel contains widgets, not tabs -### `noSync` +### `noSync`flash_on - type: `boolean` - default: `false` - usage: set to `true` to prevent tab changes from synchronizing between clients that share the same session file diff --git a/resources/docs/widgets/widgets.md b/resources/docs/widgets/widgets.md index fee9069b..0285332b 100644 --- a/resources/docs/widgets/widgets.md +++ b/resources/docs/widgets/widgets.md @@ -40,7 +40,7 @@ All widgets share a set of generic properties described below. - type: `number|percentage` - default: `auto` -### `color` +### `color`flash_on - type: `string` - default: `auto`, inherited accent color - usage: any valid `css` color code is valid, this will change the default accent color for the widget and all its children @@ -58,21 +58,21 @@ All widgets share a set of generic properties described below. ## OSC -### `value` +### `value`flash_on - type: `*` - default: `empty` -- usage: if set, the widget will be initialized with this `value`. This won't affect linked widgets and won't send any osc message. +- usage: if set, the widget will be initialized with this `value`. This won't send any osc message unless it is changed because of a property inheritance update initiated by an action that should send osc (e.g. dragging a slider). - note: its `type` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc). -### `precision` +### `precision`flash_on - type: `integer|string` - default: `2` - usage: the `precision` property defines the number of decimals to display and to send. - set to `0` to send `integers` only. - a specific data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals -### `target` +### `target`flash_on - type: `array` - default: `[]` - usage: @@ -84,7 +84,7 @@ All widgets share a set of generic properties described below. - if no target is set (empty array `[]`), messages can still be sent if the server has defaults targets (`-s / --send`) - to disable osc regardless of the previous point, set `target` to `[null]` -### `address` +### `address`flash_on - type: `string` - default: `/widgets_id` - usage: this is the `address` of the osc messages sent by the widget, it must start with a `/` @@ -97,7 +97,7 @@ All widgets share a set of generic properties described below. /touch/address [preArgs] 0/1 ``` -### `preArgs` +### `preArgs`flash_on - type: `array` - default: `[]` - usage: