Closed Sendoo closed 4 years ago
vue-autosuggest
node
npm
yarn
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 }, ..... }
@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.
@selected
:suggestions
vue-autosuggest
version: 2.0.4node
version: 12.13.0npm
(oryarn
) version: 6.13.1Hi 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 }, ..... }