We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thank you for this project! Here is a feature request:
Allow collapsed to recieve a function that determines if a node should be open or not, given its depth and content.
collapsed
Use case: Sometimes it is useful to hide not only nodes below a certain depth, but also those with very many children.
It would be nice to be able to do something like this: collapsed: (key, depth, content) => depth > 2 || content.length > 200
collapsed: (key, depth, content) => depth > 2 || content.length > 200
This would allow all sorts of custom behaviour: collapsed: (key, depth, content) => key.startsWith("_")
collapsed: (key, depth, content) => key.startsWith("_")
For an example of this, see https://github.com/microlinkhq/react-json-view where shouldCollapse offers this functionality
shouldCollapse
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thank you for this project! Here is a feature request:
Allow
collapsed
to recieve a function that determines if a node should be open or not, given its depth and content.Use case: Sometimes it is useful to hide not only nodes below a certain depth, but also those with very many children.
It would be nice to be able to do something like this:
collapsed: (key, depth, content) => depth > 2 || content.length > 200
This would allow all sorts of custom behaviour:
collapsed: (key, depth, content) => key.startsWith("_")
For an example of this, see https://github.com/microlinkhq/react-json-view where
shouldCollapse
offers this functionalityThe text was updated successfully, but these errors were encountered: