The default item in the combobox.
Is user allowed to enter item that does not on the sugeestion list.
The options should pass to select2.
The method that build suggestion list.
The method that build suggestion list.
The text user input into the combobox.
The combobox suggestion items.
The JsCmd that could clear current selection in the combobox.
The ComboBox HTML code that could bind to template.
The id of HTML hidden input box associate with select2 combobox.
Register the onSearching method as an Lift's ajax function that could access from URL.
Register the onSearching method as an Lift's ajax function that could access from URL.
The AJAX callback URL.
What we should do when user added an item.
What we should do when user added an item.
The text user entered into combo box.
What JsCmd should execute on client side.
What we should do when user selected / canceled an item.
What we should do when user selected / canceled an item.
If user selected an item, it will be Some[ComboItem]. if user canceled the current item, it will be None.
What JsCmd should execute on client side.
What we should do when user selected / canceled an item on multiselect.
What we should do when user selected / canceled an item on multiselect.
What JsCmd should execute on client side.
Search AJAX function.
Search AJAX function.
This will call onSearching
and convert the result to
JSON format, and provide it to select2.
The text user entered.
The matching item as JSON response output.
The ComboBox Widget
This widget use select2 to generate the ComboBox.
You could pass options to select2 by using jsonOptions parameter in the constructor.
When using this class, you should override at least onSearching, so the combobox knows what should be displayed when user opened this comboBox.
Please see the README file to know how to acutually use this class to createa combobox in your Lift web project.