How to change icon in jstree?

后端 未结 10 1914
心在旅途
心在旅途 2021-02-01 16:25

I have the following code:

$(\'.wpFolders.co_files\').bind(\'select_node.jstree\', function (event, data) {
            getFileById(data.args[0].hash.replace(\'#         


        
10条回答
  •  生来不讨喜
    2021-02-01 16:40

    You may change the icon with the new API, without HTML, CSS, or plugins.

    $("#tree").jstree(true).set_icon(nodeId, "/images/blabla.png");
    

提交回复
热议问题