A select component for multi selection with local data.
Opaque type representing cases to be passed to SmartSelect.update
Instantiates and returns a smart select.
The smart select view for selecting multiple options at a time with local data. It expects the following arguments (in order):
Events external to the smart select to which it is subscribed.
Update the provided smart select and receive the updated select instance and a cmd to run.
The type facilitating the configuration of the smart select.
internalMsg field takes a function that expects a SmartSelect.Msg and returns an externally defined msg.optionType is a string that indicates what kind of data is being selected, i.e. "Product" or "Client"optionLabelFn expects an instance of the data being selected from and returns a string naming/labeling the instance, i.e. if it is a "Product" being selected, the label may be "Garden Hose"optionDescriptionFn expects an instance of the data being selected from and returns a string describing the instance, i.e. if the label is "Garden Hose", the description may be "30 ft"optionsContainerMaxHeight field specifies the height of the container of the selectable options. This field helps facilitate scroll functionality.searchFn field expects a function taking the search text and the items to search and returning the filtered items.closeOnSelect indicates whether or not the SmartSelect should close itself after a selection has been made.Get the currently selected entities, if any.
It is possible that the select is instantiated on your model before data representing a previous selection is loaded. Use this function to update the picked selection in the select when the appropriate data is received. Use this method sparingly, if at all. The selected state should ideally only change due to user input.
The opaque type representing a particular smart select instance.