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/Select/Props/index.html
Module Select.Props
val make :
?options:item list ->
?selected_index:int ->
?background:Ansi.Color.t ->
?text_color:Ansi.Color.t ->
?focused_background:Ansi.Color.t ->
?focused_text_color:Ansi.Color.t ->
?selected_background:Ansi.Color.t ->
?selected_text_color:Ansi.Color.t ->
?description_color:Ansi.Color.t ->
?selected_description_color:Ansi.Color.t ->
?show_description:bool ->
?show_scroll_indicator:bool ->
?wrap_selection:bool ->
?item_spacing:int ->
?fast_scroll_step:int ->
unit ->
tmake () is a property set with the same defaults as create, with:
optionsitems to display. Defaults to[].selected_indexinitial selection, clamped to [0;length - 1]. Defaults to0.backgroundunfocused background color. Defaults to transparent.text_colorunfocused text color. Defaults to white.focused_backgroundfocused background color. Defaults tobackgroundwhen provided, otherwise a subtle dark gray.focused_text_colorfocused text color. Defaults totext_color.selected_backgroundselected item background. Defaults to dark blue.selected_text_colorselected item text color. Defaults to yellow.description_colordescription text color. Defaults to gray.selected_description_colorselected item description color. Defaults to light gray.show_descriptionwhether to display description lines. Defaults totrue.show_scroll_indicatorwhether to display scroll position indicator. Defaults tofalse.wrap_selectionwhether to wrap to the opposite end when navigating past list boundaries. Defaults tofalse.item_spacingvertical spacing between items in cells, clamped to minimum0. Defaults to0.fast_scroll_stepitems to skip with Shift+Up/Down, clamped to minimum1. Defaults to5.
val default : tdefault is make ().
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>