mattzollinhofer / vue-typeahead-bootstrap

An autocomplete/typeahead component for Vue 2 and Bootstrap 4
https://mattzollinhofer.github.io/vue-typeahead-bootstrap-docs/
MIT License
92 stars 62 forks source link

property for "Amount" of results #88

Open ttodua opened 3 years ago

ttodua commented 3 years ago

I've been reading through docs and couldn't find... Where is the property, which says how many items are matching the current query? i.e. MatchedAmount or whatever, which will provide that i.e. 4 (or whatever items were found in dropdown for the entered query).

Found method matchedItems in https://github.com/mattzollinhofer/vue-typeahead-bootstrap/blob/master/src/components/VueTypeaheadBootstrap.vue , in which method might MatchedAmount can be set, but i am not sure how to create a new property MatchedAmount exposed to outside world.

mattzollinhofer commented 3 years ago

Are you looking for maxMatches?

ttodua commented 3 years ago

No, I think i have not explained. I dont want the input argument to define (maxMatches is just argument for VTB), I mean, when you search for any query and in dropdown it finds X matched amount. I want that X number. So, how many matches are being showing in dropdown (if i have maxMatches 1000, but it gets i.e. 4 results for query, that result is what I want to know).

mattzollinhofer commented 3 years ago

oh oh, I see. I can see that being helpful and I don't think that should be too hard to do. I need to look through issues and see what needs to be done next, but I'll definitely put this on the list.