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

How to add icons to all leaf nodes? Thank answer #1125

Closed
Aliwhy opened this issue May 22, 2015 · 1 comment
Closed

How to add icons to all leaf nodes? Thank answer #1125

Aliwhy opened this issue May 22, 2015 · 1 comment

Comments

@Aliwhy
Copy link

Aliwhy commented May 22, 2015

No description provided.

@vakata
Copy link
Owner

vakata commented May 22, 2015

You have two options:

  1. Add the icons to the data you are passing to jstree (you could use "icon" : "jstree-file" for each node you need to have a different icon).

  2. Or you could use a simple CSS approach:

.jstree-leaf > .jstree-anchor > .jstree-themeicon { background:red !important; }

Best regards,
Ivan

@vakata vakata closed this as completed May 22, 2015
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