Dropdown
Options
Options for the dropdown.
* items is content of the dropdown.
* emptyItem is the item for when the nothing is selected. Set to Nothing for no empty item.
* onChange is the message for when the selected value in the dropdown is changed.
Default Options, will give you empty dropdown with no empty item
Html element.
Put this in your view's Html content. Example:
Html.div []
[ Dropdown.dropdown
(Dropdown.defaultOptions DropdownChanged)
[ class "my-dropdown" ]
model.selectedDropdownValue
]
Item is the individual content of the dropdown.
*
valueis the item value orid*textis the display text of the dropdown item. *enabledis a flag to indicate whether the item is enabled or disabled.