From eb04ada9d0fc926cbdfe9e2c560df4e1f5b15d16 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 30 Jan 2020 22:46:45 +0100 Subject: [PATCH] docs: clean --- resources/docs/docs/widgets-reference.md | 21 ++++++++++++-- resources/src/scss/styles.scss | 36 ------------------------ 2 files changed, 19 insertions(+), 38 deletions(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index 2b245efa..b9071df0 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -13,7 +13,7 @@ |

width#

| `number`|
`percentage` | "auto" | | |

height#

| `number`|
`percentage` | "auto" | | |

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 | +|

label#

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

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free) | |

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. | |

value#

|||| @@ -170,6 +170,22 @@ A fader with two heads for setting a range. | |||| | | `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

An empty option will always be prepended to values (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css` | +### menu + +Drag and drop menu with a circular layout + +| property | type |default | description | +| --- | --- | --- | --- | +| |||| +| | `number`|
`array` | 200 | - If `circular` is `true`: diameter (in px)
- If `circular` is `false`: square size or `[width, height]` array | +| | `boolean` | true | Defines whether the menu should be rendered in a circle or in a box | +| | `boolean`|
`number` | false | If `circular` is `false`, set this to `true` for vertical layout

Ignored when `grid` is `true` | +| | `boolean`|
`number` | false | - If `circular` is `false`, set this to `true` for grid layout
- Can be a `number` to define the number of columns | +| | `boolean` | false | Set to `true` to make the menu stay opened after mouse/touch release | +| | `boolean` | false | Set to `true` to make the menu require a double tap to be opened instead of a single tap | +| | `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 | +| | `array` | "" | `Array` of `number` defining the weights of each value in `values`

Ignored when `grid` is `true` | + ## Pads ### xy @@ -585,7 +601,7 @@ Device motion/orientation sensor. ### file -File selector (server-side). +File/Folder selector (server-side). | property | type |default | description | | --- | --- | --- | --- | @@ -593,6 +609,7 @@ File selector (server-side). |

directory#

| `string` | "auto" | Default browsing directory | |

extension#

| `string` | "*" | Only display files with this extension | |

hidePath#

| `boolean` | false | Set to `true` to only display the filename (the whole path will still be used as value) | +|

allowDir#

| `boolean` | false | Allow selecting a folder (by pressing "open" when no file is selected) |