Logo FS-Skia-UI

Menu Module

Builders for the `Menu` control — a list of selectable command entries.

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 `Menu` from its attributes; pair with `Menu.items` and `onSelected`. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is the recommended authoring path.

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 entry labels of a `Menu` (`Attr.items`; one selectable row per `string`, in order).

arg0 : string list
Returns: Attr<'msg>

onSelected arg1

Full Usage: onSelected arg1

Parameters:
    arg0 : string -> 'msg

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

Emit a `'msg` carrying the chosen entry `string` when a `Menu` item is selected (`Attr.onSelected`).

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

Type something to start searching.