What is the proper way to change theme... that actually works! #2720
Replies: 1 comment
-
Here is a demo: https://jsfiddle.net/4kzq176u/ I included both themes and used your config - seems to work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm a true novice so apologies in advance for the rookie question. I've been trying to change theme on a basic jstree (e.g. from default to default-dark). In terms of how this is done, there seems to be no consistency across various forums. The best I can gather is the following (editing jstree/demo/basic/index.html, from the out-of-the-box jstree-master code):
Change style sheet to default-dark, e.g.
<link rel="stylesheet" href="./../../dist/themes/default-dark/style.min.css" />
Specify theme change in core : themes, and (maybe?) include the "themes" plugin, as follows:
However, this doesn't work for me. Nothing changes and the dots and icons are still visible. Some forums have the "themes" information outside of "core", some appear to have "themes" as a plugin. Elsewhere, the theme is changed after creating the jstree instance (this also doesn't seem to work for me).
Any help would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions