Autocomplete
enhances an input to support server-driven searchServer-driven autocomplete using the browser’s native datalist
functionality.
To create an autocomplete, create a normal form input, and call the autocomplete
method.
It takes several arguments, including the URL, the querystring field name, and transformations methods for creating the datalist
.
The URL must return a JSON array of objects.
The result of the title
function must include the search content or the browser will hide it.
1 |
|
If you use the export
module in your app, autocompletes will be generated automatically for the relationships of models tagged search
.