Logo FS-Skia-UI

RadioGroup Module

Builders for the `RadioGroup` control — a set of mutually-exclusive options, one selected at a time.

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 `RadioGroup` from its attributes; pair with `RadioGroup.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 option labels of a `RadioGroup` (`Attr.items`; one radio button per `string` in the list, 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-chosen option `string` when a `RadioGroup` 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 option of a `RadioGroup` is chosen (`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.