darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

Select item by id #157

Closed Sendoo closed 4 years ago

Sendoo commented 4 years ago

Hi Tell me, is it possible to select an item from the list, knowing its ID? I want to pass this parameter on a vue router.

{ { id: 1, title: Mike, }, { id: 2, title: Tom }, ..... }

darrenjennings commented 4 years ago

@Sendoo vue-autosuggest doesn't dictate what your objects are. You should be able to lookup on @selected event to do as you see fit based on what :suggestions are.