Vue-multiselect: make the tags invisible and show the total tag instead

Created on 12 Jun 2018  Â·  11Comments  Â·  Source: shentao/vue-multiselect

I do not want to see the tags. Instead, it is better to see the total selected tags.

enhancement

Most helpful comment

@akki-jat

42593598-8c88599e-856a-11e8-898e-a6083160ad46

This good idea.

All 11 comments

I would like to have an option for this as well.

I had to do an ugly hack with limit=0 and some custom JS for the limit-text so native support would be nice, its crazy how there are no multi select dropdowns that dont natively and cleanly support no tags,

Hi @VCodepp

Are you talking about feature like this?

element_select

Or like this?

vue_multislect

@akki-jat

42593598-8c88599e-856a-11e8-898e-a6083160ad46

This good idea.

I've 'solved' this by setting the amount of selected items to show at 0 and css hiding the message that appears when there is nothing showing.

This is now available in 2.1.2 thanks to @akki-jat PR! 🎉

Hi, thank you for the wonderful feature!
I have checked many sites to implement this feature, but i couldn't find out how to set it.
If possible, could you kindly share us how we could list no tags and list "2 options selected"?
(Please kindly tell us in what options or code we should list to implement this feature)
sorry for taking you time.
& thank you for your support.

Hi @rashearth,
creted small demo for it so you can play around with it.

Demo Link:

https://jsfiddle.net/akki_jat/pdvLz5bs/6/

Hi, akki-jat, Thank you so much for the support!
i understood, but it seems a bit different for what i have imagined.

in the Vue.js multiselect homepage(https://vue-multiselect.js.org/) example, it writes in plain text of "3options selected" as the picture below.
is it possible to work like this in plain text? this feature would fit the design of any kind of sites.
i have checked the source of the HP, but i could find the exact code for working this out.

sorry for taking you time, but it would be great if you could show us how to work this out.

スクリーンショット 2019-10-14 19 51 15
スクリーンショット 2019-10-14 19 51 22

Hi, @rashearth ,

Styles were coming because I added the classes you can remove the classes or even add your custom classes to give look as you want.

Take a look at updated link.

https://jsfiddle.net/akki_jat/prLu7zqt/9/

thanks alot! I got it working!
it took me so long, since i have been using the old version of vue multiselect, and couldnt make it work. but now i got it:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreasvirkus picture andreasvirkus  Â·  3Comments

zachleigh picture zachleigh  Â·  3Comments

stefanheimann picture stefanheimann  Â·  4Comments

MaxHalford picture MaxHalford  Â·  4Comments

yaakovp picture yaakovp  Â·  3Comments