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/Code/Props/index.html
Module Code.Props
val make :
?content:string ->
?spans:Text_buffer.span list ->
?text_style:Ansi.Style.t ->
?wrap:Text_surface.wrap ->
?tab_width:int ->
?truncate:bool ->
?selectable:bool ->
?selection_bg:Ansi.Color.t ->
?selection_fg:Ansi.Color.t ->
unit ->
tmake () is a code props value with:
contentis the plain source code text. Defaults to"".spansare pre-computed styled spans (Text_buffer.spanlist). When present, these override the plaincontentdisplay. Typically produced by a syntax highlighter. Defaults to[].text_styleis the base text style. Defaults toAnsi.Style.default.wrapis the wrapping mode. Defaults to`None.tab_widthis the tab stop width in columns. Defaults to4.truncatecontrols whether long lines are truncated with an ellipsis. Defaults tofalse.selectablecontrols whether text can be selected. Defaults totrue.selection_bgis the selection background color.selection_fgis the selection foreground color.
val default : tdefault is the default props value.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>