package mosaic
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Terminal UI framework for OCaml with The Elm Architecture
Install
dune-project
Dependency
Authors
Maintainers
Sources
mosaic-0.1.0.tbz
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/mosaic.ui/Mosaic_ui/Table/Props/index.html
Module Table.Props
val make :
?columns:column list ->
?rows:cell array list ->
?selected_row:int ->
?border:bool ->
?border_style:Grid.Border.t ->
?show_header:bool ->
?show_column_separator:bool ->
?show_row_separator:bool ->
?cell_padding:int ->
?header_color:Ansi.Color.t ->
?header_background:Ansi.Color.t ->
?text_color:Ansi.Color.t ->
?background:Ansi.Color.t ->
?selected_text_color:Ansi.Color.t ->
?selected_background:Ansi.Color.t ->
?focused_selected_text_color:Ansi.Color.t ->
?focused_selected_background:Ansi.Color.t ->
?row_styles:Ansi.Style.t list ->
?wrap_selection:bool ->
?fast_scroll_step:int ->
unit ->
tmake () is a property set with:
columnsthe column specification list. Defaults to[].rowsthe data rows, each acell array. Defaults to[].selected_rowthe initial selection index, clamped to the valid range. Defaults to0.borderenables the outer border and header separator. Defaults totrue.border_stylethe border character set. Defaults toGrid.Border.single.show_headershows the header row. Defaults totrue.show_column_separatorshows vertical lines between columns. Defaults tofalse.show_row_separatorshows horizontal lines between rows. Defaults tofalse.cell_paddingthe horizontal padding (in terminal columns) per side of each cell. Defaults to0.header_colorthe header text color. Defaults to white.header_backgroundthe header background color. Defaults to dark gray.text_colorthe default cell text color. Defaults to white.backgroundthe table background color. Defaults to transparent.selected_text_colorthe selected row text color. Defaults to yellow.selected_backgroundthe selected row background. Defaults to dark blue.focused_selected_text_colorthe focused-and-selected row text color. WhenNone,selected_text_coloris used instead.focused_selected_backgroundthe focused-and-selected row background. WhenNone,selected_backgroundis used instead.row_stylesthe list of alternating row styles, applied by modulo index. Defaults to[](no alternation).wrap_selectionwraps selection at row boundaries. Defaults tofalse.fast_scroll_stepthe number of rows to skip on Shift+Up/Down. Defaults to5.
val default : tdefault is make ().
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>