Module Types.SelectValueState

type 'option t = 'option t_select_value_state

The first (or only, in case of single select) selected option.

val selected_option : 'option t -> 'option Solidtype.Solid.accessor

An array of selected options. It will contain only one value in case of single select.

The first (or only, in case of single select) selected option.

val selected_options : 'option t -> 'option array Solidtype.Solid.accessor

A function to remove an option from the selection.

An array of selected options. It will contain only one value in case of single select.

val remove : 'option t -> 'option -> unit

A function to clear the selection.

A function to remove an option from the selection.

val clear : 'option t -> unit -> unit

A function to clear the selection.

val make : selected_option:'option Solidtype.Solid.accessor -> selected_options:'option array Solidtype.Solid.accessor -> remove:('option -> unit) -> clear:(unit -> unit) -> unit -> 'option t