hummingbird-dev / hummingbird-treeview

A powerful and fast jQuery treeview plugin
MIT License
62 stars 23 forks source link

Collapse All no working #18

Open ArmandArthur opened 4 years ago

ArmandArthur commented 4 years ago

Hello,

I'm trying :

    $.fn.hummingbird.defaults.collapseAll= true;
    $("#treeview").hummingbird();

I think collapseAll is already defined at true from the read me.

$("#treeview").hummingbird("collapseAll"); 

But it's close all node and i can't open them? Do you have an idea? thanks !

ArmandArthur commented 4 years ago
                            $.fn.hummingbird.defaults.collapseAll= true;
                            $("#treeview").hummingbird("collapseAll");
                            $.fn.hummingbird.defaults.collapseAll= true;
                            $("#treeview").hummingbird();

Works

hummingbird-dev commented 4 years ago

Hi, good that it works. Yes, "collapseAll" is default on initialization. So, $("#treeview").hummingbird(); should be enough.