package bogue

  1. Overview
  2. Docs

Tables with sortable columns and selectable rows.

Dependency graph
type column = {
  1. title : string;
  2. length : int;
  3. rows : int -> Layout.t;
  4. compare : (int -> int -> int) option;
  5. width : int option;
}
type t
val create : ?w:int -> h:int -> ?row_height:int -> ?name:string -> column list -> Layout.t * (Selection.t, Selection.t) Tvar.t
  • returns

    a layout and a Tvar. The Tvar can be used to see which rows were selected by the user, and also to modify the selection if needed.

val of_array : ?w:int -> h:int -> ?widths:int option list -> ?row_height:int -> ?name:string -> string list -> string array array -> Layout.t * (Selection.t, Selection.t) Tvar.t
val of_list : ?w:int -> h:int -> ?widths:int option list -> ?row_height:int -> ?name:string -> string list list -> Layout.t * (Selection.t, Selection.t) Tvar.t