-
Notifications
You must be signed in to change notification settings - Fork 505
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
Feature: sublabels / option slots #8
Comments
I totally agree. Thanks for your feedback! |
Hey, I just added the slot. It would be like this to use it: <treeselect ...>
<template slot="option" slot-scope="{ option }">
{{option.label}}
...other things i want to customize the label with here...
</template>
</treeselect> Note that, Another thing worth noting is that, since the count text is implemented in the fallback content, if you customized the slot then you have to implement the count text yourself too if you are using it. Do you think the API design fits your needs? Any suggestions are welcome! |
Any chance to release a new version? |
@anfinil I'm sorry, it's not done yet :( |
Hi, really sorry it took too long to have this feature finished. Just to let you know I just shipped it in v0.0.7. |
Build production
I would like to customize the options adding a new gray sublabel, like count but with my own text. The best solution would probably be a slot that allows the users of this component to change the labels with our own custom HTML:
You can provide a default slot implementation as a fallback, so it's a completely backwards compatible change and only adds new functionality.
The text was updated successfully, but these errors were encountered: