Feature request: Autocomplete with dynamic loading/remote data source
See original GitHub issueCurrently the component v-select, with the autocomplete directive, allows the selection of items within a specific list (defined in the items property).
In some cases there are many records to be listed, which may be maintained in a server, e.g. select a student from hundreds students enrolled in a course. In this case, the input text should be used to filter all the student records in the server by name, optinally with additional parameters (ex. the course selected).
This feature is present in many libraries, as JQuery: https://jqueryui.com/autocomplete/#remote
I’m attaching to the request my AutoComplete component, which I implemented by extending Vuetify Select.
Example of use:
<auto-complete label="Student" v-model="exam.student" required
prepend-icon="person" :disabled="!exam.course"
data-url="students" :data-params="{ course: exam.course }" data-post
item-text="name" item-value="id">
Please note that I’m using vue-resource and the url informed “students” is combined with the server root (http://www.myserver.com/ws/).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:7 (3 by maintainers)
Top GitHub Comments
I use autocomplete with remote data fetching by utilizing
input.native
and debounce use input:0.15.3 saw a massive improvement to the tools available for asynchronous item loading. Going to consider this resolved.