package mosaic
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/mosaic.mlx/Mosaic_mlx/Table/index.html
Module Mosaic_mlx.TableSource
Companion types for the table widget.
type alignment = Mosaic_ui.Table.alignmentHorizontal text alignment: `Left, `Right, or `Center. Defaults to `Left.
type width = Mosaic_ui.Table.widthColumn width strategy: `Auto, `Fixed of int, or `Fraction of float. Defaults to `Auto.
type overflow = Mosaic_ui.Table.overflowCell content overflow: `Ellipsis or `Wrap. Defaults to `Ellipsis.
type column = Mosaic_ui.Table.column = {header : string;(*Column header text.
*)width : width;(*Sizing strategy.
*)alignment : alignment;(*Text alignment.
*)overflow : overflow;(*Content overflow strategy.
*)min_width : int option;(*Minimum column width in cells.
*)max_width : int option;(*Maximum column width in cells.
*)
}The type for column definitions. Use column to create values with sensible defaults.
val column :
?width:width ->
?alignment:alignment ->
?overflow:overflow ->
?min_width:int ->
?max_width:int ->
string ->
columncolumn header is a column definition with the given header.
width defaults to `Auto. alignment defaults to `Left. overflow defaults to `Ellipsis.
type cell = Mosaic_ui.Table.cellThe type for table cell content.
val cell : ?style:Ansi.Style.t -> string -> cellcell s is a plain-text cell containing s.
style defaults to Ansi.Style.default.
val rich : Mosaic_ui.Text.fragment list -> cellrich fragments is a styled cell built from a list of styled text fragments.