ng-select
ng-select copied to clipboard
Remote data while searching
I couldn't find such an option. Is there a way to implement that while the user is typing in the search box?
I'd like to help out with this issue. I needed this feature few days ago and as I did not find it already implemented so I created it in the fork. All I did is added:
@Output() inputChanged = new EventEmitter<string>();
and
@Input() disableClientFilter: boolean = false;
in select.component.ts
these changes let's me use new event emitter in my component to query server for new options each time user input any symbol in search box.
Additional to the noOptionsFound output event, I could add a search output event that simply returns the current search term if the filter input changes. This search term can then be used to load remote data and replace the list of options with the returned data. Would that help?
+1 for this please
I added an onFilterInputChanged output to enable retrieving data from remote server. I have also added an example of how to use it in the project app component.
I will create a pull request for this. I would be appreciated if this can be included in the future release.
+1