Module Types.SelectionManager

An interface for reading and updating multiple selection state.

val selection_mode : t -> unit -> [ `none | `single | `multiple ]
val disallow_empty_selection : t -> unit -> bool
val selection_behavior : t -> unit -> [ `toggle | `replace ]
val set_selection_behavior : t -> [ `toggle | `replace ] -> unit
val is_focused : t -> unit -> bool
val set_focused : t -> bool -> unit
val focused_key : t -> unit -> string option
val set_focused_key : t -> ?key:string -> unit -> unit
val selected_keys : t -> unit -> string Js.Set.t
val is_selected : t -> string -> bool
val is_empty : t -> unit -> bool
val is_select_all : t -> unit -> bool
val first_selected_key : t -> unit -> string option
val last_selected_key : t -> unit -> string option
val extend_selection : t -> string -> unit
val toggle_selection : t -> string -> unit
val replace_selection : t -> string -> unit
val set_selected_keys : t -> string array -> unit
val select_all : t -> unit -> unit
val clear_selection : t -> unit -> unit
val toggle_select_all : t -> unit -> unit
val select : t -> string -> ?e:Dom.pointerEvent -> unit -> unit
val is_selection_equal : t -> string Js.Set.t -> bool
val can_select_item : t -> string -> bool
val is_disabled : t -> string -> bool