Logo FS-Skia-UI

Tabs Module

Builders for the `Tabs` control — a row of tab headers selecting one active page.

Functions and values

Function or value Description

create arg1

Full Usage: create arg1

Parameters:
    arg0 : Attr<'msg> list

Returns: Control<'msg>
Type parameters: 'msg

Build a `Tabs` strip from its attributes; pair with `Tabs.items`, `selected` and `onChanged`. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is recommended.

arg0 : Attr<'msg> list
Returns: Control<'msg>

items arg1

Full Usage: items arg1

Parameters:
    arg0 : string list

Returns: Attr<'msg>
Type parameters: 'msg

Supply the tab header labels of a `Tabs` strip (`Attr.items`; one tab per `string`, in order).

arg0 : string list
Returns: Attr<'msg>

onChanged arg1

Full Usage: onChanged arg1

Parameters:
    arg0 : string -> 'msg

Returns: Attr<'msg>
Type parameters: 'msg

Emit a `'msg` carrying the newly-activated tab `string` when the `Tabs` selection changes (`Attr.onChanged`).

arg0 : string -> 'msg
Returns: Attr<'msg>

selected arg1

Full Usage: selected arg1

Parameters:
    arg0 : string

Returns: Attr<'msg>
Type parameters: 'msg

Mark which tab of a `Tabs` strip is active (`Attr.selected`; the `string` must match one of `items`). A controlled value reconciled via `onChanged`.

arg0 : string
Returns: Attr<'msg>

Type something to start searching.