Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

#50-issue - Added a rawResults flag to VueBootstrapTypehead that enab… #54

Closed
wants to merge 1 commit into from

Conversation

Yorikup
Copy link

@Yorikup Yorikup commented Jul 8, 2019

Added a rawResults flag to VueBootstrapTypehead that enables it to show all the data results without filters in TypeheadList.
Actually I had the same issue as mentioned here: #50 . I have a data from server, that is already processed and filtered as I need. So this will help me or somebody else to do the same thing - just show all the data in TypeheadList if they've already processed it by adding a flag rawResults to their component. Like this:
<vue-bootstrap-typeahead
:data="countries"
v-model="cntrySearch"
:serializer="s => s.name"
placeholder="Canada, United States, etc..."
@hit="handleHit"
:rawResults="true"
/>
Without the flag or setting it to false will act as it is now.
P.S: I'm not really experienced contributor, so contact me please if I did something wrong and I'll be happy to fix myself up).

…les it to show all the data results without filters in TypeheadList
bakoe added a commit to bakoe/vue-bootstrap-typeahead that referenced this pull request Aug 19, 2019
@mattzollinhofer
Copy link

This is a great PR, thanks for the work!

I merged in functionality that I think meets this need here: mattzollinhofer/vue-typeahead-bootstrap@6646027. This implementation refers to it as showAllResults rather than rawResults but I believe the outcome is essentially the same.

You can use the functionality under the forked project: https://www.npmjs.com/package/vue-typeahead-bootstrap or https://github.com/mattzollinhofer/vue-typeahead-bootstrap.

Hope this helps anyone who needs this functionality going forward!

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants