-
Notifications
You must be signed in to change notification settings - Fork 22
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
Combining icon style into items #26
Comments
Hi, I checked some options and I don't think there is a simple way right now. You could add icons to all links with something like
but this is totally useless - I don't suppose anyone would like to use the same icon for everything :) I was thinking about it more and I am considering the idea of adding new fields to source items: Example of enhanced component API:
I think this could be usefull in general for adding some extra style only to a few selected links, right? Also you could add your icons with #my-id::before or .my-class::before. Could this help you? |
Thanks for the reply. Yes, I think it's quite more work if we need to add manual id and class for the items. Like, say: I think that what I can conceive. |
Hi, thank you.
I get automatically assigned ids. But I am not sure about classes. Purpose of class in some use cases could be to provide a way how to simply style some custom group of menu items and we cannot predict which group it will be - this is something which library users will need to choose themselves sometimes. So I suppose we could combine both solutions actually. There are already some automatically assigned classes (described here https://vue-tree-navigation.misrob.cz/#/styling) so I think we could assign these hierarchical classes too - something like And then there would be an option to add a custom class or custom id (optional, not required) to any menu item as proposed in a first comment so there would be a possibility to use id for some overrides or to use some custom classes. Does it make sense? |
Yes, it does, and I couldn't agree more, that would be nice to be able to override the generated ids for more customizing purpose. Sorry for my late reply.. |
Ok, thanks. I'm planning to release v4 so this will be probably included. Didn't have much time through holidays but will be back open-sourcing since the second half of September. |
I've decided to release v4.0.0 without this feature since 4.0.0 contains some updates which could be quite useful so I don't want to wait longer than needed for the new release. Will add this feature to 4.1.0. |
This would be a very useful feature |
It's first item on my to-do list :) Contributions are welcome! |
Hi, I wonder is there a simple way to add icon styling into these items links. I use vue-awesome but didn't know how to combine them, any suggestion to make the links look prettier, thanks.
The text was updated successfully, but these errors were encountered: