Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/abradley2/form-controls is gone (deleted or private); Software Heritage has no tag 2.0.1 for it; no fork with tag 2.0.1 found (60 same-name repos checked); no cached copy. Use another version.
A super select widget for Elm
Init
Creates the initial model for the element. id should be a unique string identifier.
The second argument are the Option records since these are often initially decided.
If you are loading the options asynchronously as a response to user input, the options
should be set via a setNewOptions in your update function.
Update The function for updating the element.
subscriptions As this element requires listening to keyboard events, the subscriptions must be added to your main function so it may do so.
defaultProps
Default properties for the element. The props actually passed in should generally have label set to
a non-empty string
Msg
TextInputMsg the messages used by the underlying TextInput elementOptionSelected fired when an option is selectedmodel
id The unique id of the element. This is passed as the first argument to initvalue The currently selected optioninputValue The text input value for the underlying TextInput elementtextInputData Key for allocating the model of the underlying TextInput elementprops
errorText If you wish to communicate the selection as invalid, set it to the error messagehelperText Helper text to guide the user's input. Not shown if errorText is set to non-Nothinglabel input label for the text inputOption Option for the select menu
View The view for displaying the element.