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

Multiple Option labels? #1

Closed
eliaschampi opened this issue Aug 13, 2018 · 4 comments
Closed

Multiple Option labels? #1

eliaschampi opened this issue Aug 13, 2018 · 4 comments

Comments

@eliaschampi
Copy link

eliaschampi commented Aug 13, 2018

Hey there, Great plugin, thank you for your hard work.
I have a question,

I have a drop down which is listing multiple users, they are in an array, with first name, last name and email all separate.

I want to make the option label;
So that the label is all three, instead of one.

I used your template slot to make it show on the dropdown, but is there any way to allow it to come up on the label too?
Thanks!

@eliaschampi eliaschampi changed the title Multiple labels? Multiple Option labels? Aug 13, 2018
@robrogers3
Copy link
Owner

robrogers3 commented Aug 14, 2018 via email

@eliaschampi
Copy link
Author

eliaschampi commented Aug 24, 2018

Thanks this work, but now the filterable was disabled
my function is
getOptionDescription (item) {
return item.name + " " + item.lastName
},

@robrogers3
Copy link
Owner

robrogers3 commented Sep 25, 2018

Sorry, I missed this. Can you elaborate on what you mean by filterable was disabled?

Can you show me how you are using it. i.e.

<vue-single-select>
   prop-foo=bar
</vue-single-select>

are you providing a custom option label or option key?

@robrogers3
Copy link
Owner

old.

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

2 participants