Register Ajax callback URL to lift.
Register Ajax callback URL to lift.
The ajax callback URL.
Implement this method to provide drop down menu.
Implement this method to provide drop down menu.
When user enter text into select2's filter field, it will call this function, and returned the List[ComboItem] to select2 to show drop-down menu.
The text user entered.
The item of drop-down menu.
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.
This trait implements the function of filtering drop down menu of select2 when user click it.