Skip to content

Provide ability to override the isLeaf calculation #287

Open
@downright-development

Description

@downright-development

Desired functionality:

I would love to provide the class an isLeaf function of something like..

{(node) => !node.children || node.children.length === 0}

This would allow me to negate the 'folder' and 'file' concept and move closer towards something like Confluence spaces - where 'pages' can be also be parents.

As it currently stands, it seems the isLeaf function will only become true on data objects without parents - which makes modifying the original data structure more annoying :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions