jstree中的下划线节点文本

Underline node text in jstree

我想给jstree中的节点文字加下划线。是否有 API 可用? 可以有一个 class 附加到这样做的节点吗?即使节点被重命名,下划线也不应该消失。

我是通过树的类型配置中的"a_attr"属性搞定的。无论您在此处指定什么,都会应用于文本

"nodeType": {
                "icon": "folder-icon.png",
                "valid_children": [],
                "a_attr": { "style": "text-decoration: underline" }
            },