hummingbird-treeview icon indicating copy to clipboard operation
hummingbird-treeview copied to clipboard

Collapse All no working

Open ArmandArthur opened this issue 4 years ago • 2 comments

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 avatar Aug 03 '20 19:08 ArmandArthur

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

Works

ArmandArthur avatar Aug 04 '20 12:08 ArmandArthur

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

hummingbird-dev avatar Aug 05 '20 06:08 hummingbird-dev