Module Value_selector.Menu
Menu selector
The value is selected in a list of elements via a drop down menu. See the styling information.
Selectors
val v :
?class':Jstr.t ->
?enabled:bool Note.signal ->
('a -> Jstr.t) ->
'a list Note.signal ->
'a Note.signal ->
'a Note_brr_kit.Ui.Value_selector.Menu.tv ~class' ~enabled label choices sel is a menu for selecting a value. S.eq sel is used to test values for equality in the list of choices.
labelis used to label the values to selectchoicesare the values among which to selectselis the value shown as selected it must be included inchoicesenabledindicates if the selector can be interacted with. Defaults toNote.S.Bool.true'class'is added to the underlying element's classes.
val action : 'a Note_brr_kit.Ui.Value_selector.Menu.t -> 'a Note.eventaction s occurs whenever a new value is selected.
val enabled : 'a Note_brr_kit.Ui.Value_selector.Menu.t -> bool Note.signalenabled s is true iff the selector is enabled.
val el : 'a Note_brr_kit.Ui.Value_selector.Menu.t -> Brr.El.tel s is s's DOM element.
Styling
The element returned by el makes use of the following CSS classes:
ui-menu-selectoralways.ui-disabledwheneverenabledisfalse.