Module Value_selector.MenuSource
Menu selector
The value is selected in a list of elements via a drop down menu. See the styling information.
Selectors
The type for menu selector of values of type 'a.
Source
val v :
?class':Jstr.t ->
?enabled:bool Note.signal ->
('a -> Jstr.t) ->
'a list Note.signal ->
'a Note.signal ->
'a 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.
action s occurs whenever a new value is selected.
enabled s is true iff the selector is enabled.
Styling
The element returned by el makes use of the following CSS classes:
ui-menu-selectoralways.ui-disabledwheneverenabledisfalse.