Adds option for a section to have an icon

This commit is contained in:
Alicia Sykes
2021-06-02 19:06:28 +01:00
parent f08a4dfbad
commit fca9162f02
6 changed files with 102 additions and 91 deletions

View File

@@ -105,6 +105,7 @@ All fields are optional, unless otherwise stated.
**`section`**
- `name` - String: (required) The title of that section
- `items` - Item[]: (required) An array of items - _See **`item`** below_
- `icon` - String: (optional) An single icon to be displayed next to the title _See **`icon`** below_
- `displayData`: An object with the following fields (all optional)
- `collapsed` - Boolean: If true, the section will be collapsed initially (defaults to `false`)
- `color` - String: A custom accent color for the section, as a hex code or HTML color (e.g. `#fff`)