Replies: 1 comment 1 reply
-
这里有一个选项你可以先试一下: var options = {
container: 'jsmind_container',
default_event_handle: {
enable_mousedown_handle: false // 这样就不会有 select 这个行为了。
}
};
var jm = new jsMind(options);
jm.show(mind); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前开发中遇到的需求是节点点击时没有任何变化,且节点有多种颜色,而每个节点在点击的时候都有一个selected的类添加上去,这就导致节点点击的时候背景变成蓝色了,一开始解决思路是强行给jmnodes.theme-success jmnode.selected的类样式覆盖为主题色,这在一种颜色的情况下是符合需求的,但是现在的需求多个节点有不同的颜色,样式覆盖的方法就无法实现了,对于这种场景在现有的版本下有相关解决方案吗?或者在下个版本新增一个selected的开关配置项用于控制是否开启selected类添加的默认行为,或者给节点新增一个selectedClass的配置项用于控制节点selected时的样式?
Beta Was this translation helpful? Give feedback.
All reactions