docs: fix dynamic props permalink

This commit is contained in:
jean-emmanuel 2018-03-18 17:14:15 +01:00
parent 80a00fa7d8
commit 1e7b5449d7
5 changed files with 36 additions and 22 deletions

View file

@ -42,9 +42,23 @@ article img {
border-radius: 3px;
}
code + i {
.dynamic-prop-icon {
vertical-align:super;
font-size: 75%;
margin-left: -5px;
opacity: 0.75!important;
opacity: 0.65!important;
}
.dynamic-prop-icon:after {
content:"flash_on";
font-family: Material Icons;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 1;
text-transform: none;
white-space: nowrap;
speak: none;
word-wrap: normal;
direction: ltr;
}

View file

@ -25,7 +25,7 @@ If the retreived property is an object (`[] / {}`), a subset can be defined by a
### Using the value
The special property name `value`<i class="md-icon" title="dynamic">flash_on</i> refers to a widget's current value (which can be affected by its `value` *property*).
The special property name `value`<i class="dynamic-prop-icon" title="dynamic"></i> refers to a widget's current value (which can be affected by its `value` *property*).
When omitted, the property name defaults to `value` : `@{widgetId}` => `@{widgetId.value}`
@ -33,13 +33,13 @@ When omitted, the property name defaults to `value` : `@{widgetId}` => `@{widget
Some properties, when changed, trigger a complete widget recreation that ends any ongoing user interaction. Also, updating these properties continuously (e.g. when linked to a slider's dynamic value) can be very cpu expensive.
Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a ` `<i class="md-icon" title="dynamic">flash_on</i>.
Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a ` `<i class="dynamic-prop-icon" title="dynamic"></i>.
### Circular references cases
- container widgets can inherit their children's properties only to define `dynamic` properties
- widgets can inherit their own `value`<i class="md-icon" title="dynamic">flash_on</i> property only to define `dynamic` properties
- widgets can inherit their own `value`<i class="dynamic-prop-icon" title="dynamic"></i> property only to define `dynamic` properties
----

View file

@ -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`<i class="md-icon" title="dynamic">flash_on</i>
### `on`<i class="dynamic-prop-icon" title="dynamic"></i>
- 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`<i class="md-icon" title="dynamic">flash_on</i>
### `off`<i class="dynamic-prop-icon" title="dynamic"></i>
- 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`<i class="md-icon" title="dynamic">flash_on</i>
### `on`<i class="dynamic-prop-icon" title="dynamic"></i>
- 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`<i class="md-icon" title="dynamic">flash_on</i>
### `off`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|number|object`
- default: `0`
- usage: defines which value is sent when releasing the button
@ -100,7 +100,7 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
}
```
### `values`<i class="md-icon" title="dynamic">flash_on</i>
### `values`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- usage:

View file

@ -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`<i class="md-icon" title="dynamic">flash_on</i>
### `variables`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `*`
- default: `@{parent.variables}`
- usage: defines one or more arbitrary variables that can be inherited by children widgets.

View file

@ -21,14 +21,14 @@ All widgets share a set of generic properties described below.
## Style
### `label`<i class="md-icon" title="dynamic">flash_on</i>
### `label`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|false`
- default: `auto`, which displays `id`
- usage:
- set to `false` to hide completely
- insert icons from [FontAwesome](https://fontawesome.com/icons?d=gallery&s=solid&m=free) using the prefix `^` followed by the icon's name : `made with ^heart`, etc
### `top`<i class="md-icon" title="dynamic">flash_on</i> / `left`<i class="md-icon" title="dynamic">flash_on</i>
### `top`<i class="dynamic-prop-icon" title="dynamic"></i> / `left`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `number|percentage`
- default: `auto`
- usage:
@ -36,17 +36,17 @@ All widgets share a set of generic properties described below.
- otherwise, the widget will be absolutely positioned
### `width`<i class="md-icon" title="dynamic">flash_on</i> / `height`<i class="md-icon" title="dynamic">flash_on</i>
### `width`<i class="dynamic-prop-icon" title="dynamic"></i> / `height`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `number|percentage`
- default: `auto`
### `color`<i class="md-icon" title="dynamic">flash_on</i>
### `color`<i class="dynamic-prop-icon" title="dynamic"></i>
- 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
### `css`<i class="md-icon" title="dynamic">flash_on</i>
### `css`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string`
- default: *empty*
- usage: applies CSS rules to widget. See [css tips](../extras/css-tips.md).
@ -59,7 +59,7 @@ All widgets share a set of generic properties described below.
- usage: if set, the widget will be initialized with this `value` when the session is loaded. Some widgets use this property under specific conditions (see fader's `doubleTap` for example).
### `value`<i class="md-icon" title="dynamic">flash_on</i>
### `value`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `*`
- default: `empty`
- usage: set `value` to define a widget's value depending on other widget's values / properties using [property inheritance](../extras/property-inheritance.md) and [property maths](../extras/property-maths.md). When updated by an osc-sending event (e.g. dragging a slider), the widget will send its own osc message as well.
@ -70,14 +70,14 @@ All widgets share a set of generic properties described below.
## OSC
### `precision`<i class="md-icon" title="dynamic">flash_on</i>
### `precision`<i class="dynamic-prop-icon" title="dynamic"></i>
- 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`<i class="md-icon" title="dynamic">flash_on</i>
### `target`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array`
- default: `[]`
- usage:
@ -89,7 +89,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`<i class="md-icon" title="dynamic">flash_on</i>
### `address`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string`
- default: `/widgets_id`
- usage: this is the `address` of the osc messages sent by the widget, it must start with a `/`
@ -102,7 +102,7 @@ All widgets share a set of generic properties described below.
/touch/address [preArgs] 0/1
```
### `preArgs`<i class="md-icon" title="dynamic">flash_on</i>
### `preArgs`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array`
- default: `[]`
- usage:
@ -133,7 +133,7 @@ preArgs: [
]
```
### `bypass`<i class="md-icon" title="dynamic">flash_on</i>
### `bypass`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `boolean`
- default: `false`
- usage: set to `true` to prevent the widget from sending any osc message