Skip to content

collapseAll() - level #13

@im-n1

Description

@im-n1

Hi there,

First of all, this library is awesome and it has no competitive libs. Well done mate!

I ran into a case where I needed to collapse all nodes including the root one. Sadly the root node is not collapsible, because this condition

if(this.level != 1)
    this.hide();

Would it be possible to add an option, something like collapseRootNode: true/false?

The reason, why it would be awesome is when you have a table (grid) and one of the columns is json, it's not possible to collapse it, so the row column is huge instead of just "{....}".

e3508765b2526700d61617d4194cb4fe

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions