jqueryjstree

How do I make the theme dots reappear in jsTree?


I have jsTree set up and it is working great with jSON. After changing my jSON structure the dots seemed to have stopped working. below is my code. I received the jSON code from here https://www.js-tutorials.com/jquery-tutorials/jstree-example-href-jstree-search-node-scrollbar/

  $(document).ready(function(){
    $('#jstree').jstree({

        plugins: ["themes","html_data", "state", "wholerow"],
        'core' : {
             'themes' : {
            'theme' : "apple",
            'dots' : true,
            'icons' : false
        },
            'data' : jsonTreeData
        }
        }).bind("select_node.jstree", function (e, data) {
         var href = data.node.a_attr.href;
         var parentId = data.node.a_attr.parent_id;
         if(href == '#')
         return '';

         window.open(href);

    });
    $('#jstree').slimScroll({
        height: '200px'
    });
     $('#jstree').showDots();

  });

Solution

  • It doesn't seem your JSON data structure rather wholerow plugin. It's the default behaviour of this plugin.