Select component.
Opaque type for the component's state.
Initialize a default and empty state.
Get the data from the State.
Get the selected item or Nothing.
Set the data in the State.
Select or unselect (Nothing) an item.
Select or unselect (Nothing) an item by ID.
Opaque type for the component's configuration.
Initialize the component's configuration.
config : Select.Config User Msg
config =
Select.config
(String.fromInt << .id)
(\x -> x.firstname ++ " " ++ x.lastname)
OnSelectState
|> Select.withPlaceholder "Select simple"
|> Select.withCheck TrueAdd custom class to the component.
Highlight if the value is not valid.
Customize the search input placeholder.
Component's view.
Component's subscriptions.
ID of a element.