Skip to content

How to render Json-tree-view initially collapsed #3

Description

Hello,
Is there a way to render the json-tree-view initially collapsed?
I tried simply adding 'true' as a parameter to
item.prepend(collapser( true ));

That changes the direction of the triangle because the collapsed class gets added,
but the ul children aren't hidden.
That only seems to be done in the on click handler.
Even doing the above, that would require me to change your source.
Is there a way to do it programmatically from my code?

Thanks
David

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