david-swift 921f025e39 Update demo and fix bugs
- Fix build optional in ViewBuilder
- Fix maximum size frame modifier
- Improve inspector wrapper
- Improve header bar
- Improve status page
- Improve the naming of some elements
2023-10-12 22:15:15 +02:00

47 lines
678 B
Markdown

**STRUCT**
# `List`
A list box widget.
## Properties
### `elements`
The elements.
### `content`
The content.
### `selection`
The identifier of the selected element.
## Methods
### `init(_:selection:content:)`
Initialize `List`.
- Parameters:
- elements: The elements.
- selection: The identifier of the selected element.
- content: The view for an element.
### `update(_:)`
Update a view storage.
- Parameter storage: The view storage.
### `container()`
Get a view storage.
- Returns: The view storage.
### `updateSelection(box:)`
Update the list's selection.
- Parameter box: The list box.
### `sidebarStyle()`
Add the "navigation-sidebar" style class.