JSTree Types plugin not working with Rel attribute -


here how configure jstree plugin:

    $(function ()     {         $("#folderstreecontainer").jstree({             "core": {                 "animation": 150             },              "themes": {                 "rtl": true,                 "theme": "classic",                 "dots": false,                 "icons": true             },              "types": {                 "types": {                     "normal": {                         "icon": { "image": "\content\css\jstree\default\folder.png" },                     },                      "legend": {                         "icon": { "image": "\content\css\jstree\default\legend.png" },                     }                 }             },             "plugins": ["html_data", "themes", "types"]         });     }); 

now here relevant html:

<div id="folderstreecontainer">   <ul id="folderstree">     <li rel="normal"><a href="#" >other</a></li>     <li rel="normal"><a href="#" >item1</a></li>     <li rel="normal"><a href="" >item2</a></li>     <li rel="legend"><a href="#" >item3-legend</a></li>   </ul> </div> 

i use "rel" attribute of <li> tag type still default folder icons..

what dooing wrong ?

you might using 3.x version of jstree not take rel attribute account. if using 3.x version, more information can found @ link : https://github.com/vakata/jstree/issues/473


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -