Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete with select #222

Closed
LusenkoSasha opened this issue Aug 4, 2017 · 23 comments
Closed

Autocomplete with select #222

LusenkoSasha opened this issue Aug 4, 2017 · 23 comments

Comments

@LusenkoSasha
Copy link

image

@Tirke
Copy link
Contributor

Tirke commented Aug 4, 2017

As #121 suggests, there is a need for a select component with more powerful abilities while keeping the current autocomplete features like templating and searching. Making a generic multiselect component loaded with useful features is not an easy task and we already have some great options available (vue-multiselect is one).

Regarding your issue , I think you can already simulate a select with a <b-autocomplete> and v-model.

@jtommy
Copy link
Member

jtommy commented Aug 7, 2017

@LusenkoSasha It's just like @Tirke said about autocomplete component

@jtommy jtommy closed this as completed Aug 7, 2017
@JoshZA
Copy link

JoshZA commented Sep 23, 2017

👍 for this feature

@ivalkenburg
Copy link
Contributor

Would love select with autocomplete features as well

@dumptyd
Copy link

dumptyd commented Jan 12, 2018

@Tirke Could you please make a fiddle or just tell me how you'd simulate select+search with b-autocomplete?

@Tirke
Copy link
Contributor

Tirke commented Jan 13, 2018

@dumptyd

I'm sorry I don't have a lot of time to provide a fiddle, but basically you juste use v-model to simulate the select and you use existing search features of the autocomplete component to achieve search.

This is not at all a fully featured select but you'll have something working. If you want something more useful I highly suggest looking at vue-multiselect or other projects.

@johnpyp
Copy link

johnpyp commented Jan 24, 2018

The only other feature I would want for the current autocomplete is the ability to have the results show when the person hasn't typed anything. Show all the data just sorted alphabetically. Currently, this same result can be achieved by just putting in a letter that doesn't fit any of the data. However, I would like this just on focus.

@jtommy
Copy link
Member

jtommy commented Jan 25, 2018

@johnpyp We are working on it!

@johnpyp
Copy link

johnpyp commented Jan 25, 2018 via email

@gfviegas
Copy link

gfviegas commented Feb 1, 2018

@Tirke of course there's components that has this feature around the web, but we are using buefy for a reason, right?

Buefy components have the look and feel that we seek in bulma and we follow all the patterns of buefy components (same attributes, the b-field "integration", etc...).

It sucks using vue-multiselect with buefy forms.. it breaks the form since it has a different stylesheet (and "feel"), we can't integrate our variables with it, and it doesn't even have SASS to customize it, there's not the state classes, icons, etc... it's a pain every time.

And I think the current b-select might as well just be improved to support this functionality

@Tirke
Copy link
Contributor

Tirke commented Feb 2, 2018

@gfviegas

Yeah, of course in an ideal world b-select should provide this functionality. But when you have deadlines and you need to ship a product you don't always have the choice of waiting on Buefy dev team. And Buefy dev team is not the most active and it's not the healthiest open source project. Just look at element or vuetify if you want to see what I consider an healthy open source project.
I'm not saying that to discredit Buefy, I think that Buefy is really great, but I also think that it will take time (maybe a lot) before we see a solid multi b-select.

Providing a good multiselect component is hard, and time consuming. Just look at vue-multiselect history. I'm just trying to provide a solution here, and I repeat myself but waiting is not always one.

And about using vue-multiselect with buefy forms, what you are saying is just not true. We shipped a product in September with Buefy + vue-multiselect used in many forms and it took me ~1 hour to have something looking exactly like Buefy b-select.

@rafaberaldo
Copy link
Member

You can now use autocomplete with open-on-focus prop to work like a custom select (and it now has scrollbars).

@dumptyd
Copy link

dumptyd commented Feb 2, 2018

Awesome! Thanks.

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

I would also like this.

@rafaelpimpa that is a good solution but it doesn't work for multiselect.

@jtommy
Copy link
Member

jtommy commented Aug 25, 2021

@aantn there is tagsinput

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

Hi @jtommy , thank you for the fast response.

I've tried using tagsinput but it isn't appropriate for my use case. The user can choose many tags and displaying all the chosen tags takes up too much space on the screen. A UI like multi-select works better because the chosen tags are shown only when opening the multi-select.

I would be happy to open a PR for this myself, but I would like some direction on how to handle it. Should this be an extension of multi-select? Should it be part of dropdown? Should it be part of autocomplete?

@jtommy
Copy link
Member

jtommy commented Aug 25, 2021

Can you make an example?

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

image

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

What I'm trying to create here is three smallish filters aligned on the right side of the page.

image

@jtommy
Copy link
Member

jtommy commented Aug 25, 2021

Ok, but what's the problem with tag? I need an example of UI/UX

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

image

Sure, this is what I've implemented so far. I would love to add search field for the dropdown on top of this.

Right now I'm wrapping Dropdown with my own component to implement this.

@aantn
Copy link
Contributor

aantn commented Aug 25, 2021

Just to clarify, that dropdown is only shown when the users clicks on the filter menu.

@jtommy
Copy link
Member

jtommy commented Aug 25, 2021

Ok, then the dropdown multiple is the best option for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants