Mosaic_mlx.TableSourceCompanion 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.