From c813a8d24eece04ffda912a56f63738618cc7da3 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 8 Apr 2019 21:03:02 +0200 Subject: [PATCH] docs: widgets update --- resources/docs/docs/widgets-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index ec391e37..b1012f8a 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -15,7 +15,7 @@ |

style#

|||| |

label#

| `string`\|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc | |

color#

| `string` | "auto" | Defines the widget's accent color (css variable `--custom-color`). Must be a valid CSS color. Set to "auto" to inherit from parent widget. | -|

css#

| `string` | "" | CSS rules. See documentation. | +|

css#

| `string` | "" | CSS rules. See documentation. | |

value#

|||| |

default#

| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. | |

value#

| `*` | "" | Define the widget's value depending on other widget's values / properties using property inheritance and property maths | @@ -454,7 +454,7 @@ | --- | --- | --- | --- | |

keys#

|||| |

binding#

| `string`\|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | -|

keydown#

| `string` | "" | This property is evaluated each time the key combo is pressed and defines the widget's own value. Formulas are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single keys widget, lowercased when referencing a character key)
- `code`: pressed key code name (full list)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `meta`: command/windows key state | +|

keydown#

| `string` | "" | This property is evaluated each time the key combo is pressed and defines the widget's own value. Formulas are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single keys widget, lowercased when referencing a character key)
- `code`: pressed key code name (full list)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `meta`: command/windows key state | |

keyup#

| `string` | "" | Same as `keydown`, but evaluated when releasing the key combo | |

repeat#

| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |