美文网首页JFinal精选
JBolt平台里的JStree换图标方法

JBolt平台里的JStree换图标方法

作者: 山东小木 | 来源:发表于2020-08-23 21:25 被阅读0次

三个截图搞定哈


image.png image.png
/**
 * 自定义jstree types icon
 */
function processTreeTypes() {
        var types = {
            "root" : {//根节点
                "icon" : "fa fa-users",
            },
            "root_opened" : {//根节点打开样式
                "icon" : "fa fa-users",
            },
            "parent" : {//父节点
                "icon" : "fa fa-users",
            },
            "parent_opened" : {//父节点打开样式
                "icon" : "fa fa-users",
            },
            "node" : {//叶子节点
                "icon" : "fa fa-user",
            }
        }
        return types;
    }
image.png

相关文章

网友评论

    本文标题:JBolt平台里的JStree换图标方法

    本文链接:https://www.haomeiwen.com/subject/gbmwjktx.html