package stk

  1. Overview
  2. Docs

Multi-column list widget.

val show_headers : bool Props.prop
val title : string Props.prop
val header_props : Props.t Props.prop
val line_separator_width : int Props.prop
val line_separator_color : int32 Props.prop
val column_separator_width : int Props.prop
val column_separator_color : int32 Props.prop
val row_height : int Props.prop
type Events.ev +=
  1. | Row_removed : ((int * 'a) -> unit) Events.ev
  2. | Data_set : ('a list -> unit) Events.ev
  3. | Row_inserted : ((int * 'a) -> unit) Events.ev
  4. | Row_selected : ((int * 'a) -> unit) Events.ev
  5. | Row_unselected : ((int * 'a) -> unit) Events.ev
  6. | Row_updated : ((int * 'a * 'a) -> unit) Events.ev
class type 'a cell = object ... end
class virtual 'a cell_ : ?class_:string -> ?name:'b -> ?props:'c -> 'a -> object ... end
class 'a label_cell : ?class_:string -> ?name:string -> ?props:Props.t -> to_data:('a -> string -> Props.t -> unit) -> of_data:('a -> string * Props.t option) -> 'a -> object ... end
val string_cell : ?class_:string -> ?name:string -> ?props:Props.t -> ?focusable:bool -> ('a -> string * Props.t option) -> ?to_data:('a -> string -> Props.t -> unit) -> 'a -> 'a cell
val int_cell : ?class_:string -> ?name:string -> ?props:Props.t -> ?focusable:bool -> ?to_data:('a -> int -> Props.t -> unit) -> ('a -> int * Props.t option) -> 'a -> 'a cell
class 'a text_cell : ?class_:string -> ?name:string -> ?props:Props.t -> to_data:('a -> (?start:int -> ?size:int -> ?stop:int -> unit -> string) -> Props.t -> unit) -> of_data:('a -> string * Props.t option) -> 'a -> object ... end
val text_cell : ?class_:string -> ?name:string -> ?props:Props.t -> ?to_data: ('a -> (?start:int -> ?size:int -> ?stop:int -> unit -> string) -> Props.t -> unit) -> ('a -> string * Props.t option) -> 'a -> 'a cell
type 'a column
val column : ?class_:string -> ?name:string -> ?props:Props.t -> ?header_props:Props.t -> ?sort_fun:('a -> 'a -> int) -> ?title:string -> ('a -> 'a cell) -> 'a column
type sort_order =
  1. | Ascending
  2. | Descending
type sorted = int * sort_order
val sorted : sorted Props.prop
class 'a clist : ?class_:string -> ?name:string -> ?props:Props.t -> unit -> object ... end
val clist : ?class_:string -> ?name:string -> ?props:Props.t -> ?pack:(Widget.widget -> unit) -> ?selection_mode:Props.selection_mode -> ?show_headers:bool -> unit -> 'a clist
OCaml

Innovation. Community. Security.