681 B

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

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