Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ability to override the isLeaf calculation #287

Open
downright-development opened this issue Dec 24, 2024 · 0 comments
Open

Provide ability to override the isLeaf calculation #287

downright-development opened this issue Dec 24, 2024 · 0 comments

Comments

@downright-development
Copy link

downright-development commented Dec 24, 2024

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant