From a2f1f94250c8567192d0ae38630acd7b5f5fde51 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 6 Feb 2021 13:17:23 +0100 Subject: [PATCH] docs: update --- resources/docs/docs/widgets/properties-reference.md | 5 +++-- resources/docs/download.md | 8 ++++++++ resources/overrides/home.html | 7 ------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 3d2f0236..a50a5cd1 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -108,7 +108,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
values#
| `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | - |
mode#
| `string` | "tap" | Interraction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling

Choices: `tap`, `slide`, `click` | + |
mode#
| `string` | "tap" | Interraction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling
- `flip`: selects the next value upon click regardless of where the widget is touched

Choices: `tap`, `slide`, `click`, `flip` | ??? api "" Native dropdown menu. @@ -184,6 +184,7 @@ | --- | --- | --- | --- | |
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | |
hidePath#
| `boolean` | false | Set to `true` to only display the filename (the whole path will still be used as value) | + |
mode#
| `string` | "open" | File browser mode

Choices: `open`, `save` | === "file" @@ -314,7 +315,7 @@ |
widgetType#
| `string` | "button" | Defines the type of the widgets in the matrix | |
quantity#
| `number` | 4 | Defines the number of widgets in the matrix | |
start#
| `integer` | 0 | First widget's index | - |
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

JS{{}} and #{} blocks in this field are resolved with an extra variable representing each widget's index: `$` (e.g. `#{$}`)

Advanced syntax blocks (@{}, OSC{}, JS{{}} and #{}) are resolved at the matrix' scope (ie @{this.variables} returns the matrix' variables property, not its parent's)

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | + |
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

JS{{}} and #{} blocks in this field are resolved with an extra variable representing each widget's index: `$` (e.g. `#{$}`)

Advanced syntax blocks (@{}, OSC{}, JS{{}} and #{}) are resolved at the matrix' scope (ie @{this.variables} returns the matrix' variables property)

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | === "value" diff --git a/resources/docs/download.md b/resources/docs/download.md index ff9ebb29..8a2c4d80 100644 --- a/resources/docs/download.md +++ b/resources/docs/download.md @@ -75,3 +75,11 @@ html { margin-right: .6rem; } + +
+ + Support on Patreon +
diff --git a/resources/overrides/home.html b/resources/overrides/home.html index 5ac01543..25fbe792 100644 --- a/resources/overrides/home.html +++ b/resources/overrides/home.html @@ -178,13 +178,6 @@ > Get started -
- - Support on Patreon -