Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Override ItemRange Styling #67

Closed
rydash opened this issue Feb 6, 2017 · 2 comments
Closed

Override ItemRange Styling #67

rydash opened this issue Feb 6, 2017 · 2 comments

Comments

@rydash
Copy link

rydash commented Feb 6, 2017

I have an Object containing 52 keys whose values are all different types.
When I render this object through to a JSONTree, I will see the following expandable element:
>> 46...48

I want to force that object to always be expanded, regardless of how large the overall object ends up being. And in this example, we're only hiding 3 small entries...which seems silly. By the way, the showObjectKeys key does not enforce the behavior I'm looking for.

If there's a way to accomplish this with the styling options, I absolutely cannot find it. I'd love any help or insight here!

@alexkuz
Copy link
Owner

alexkuz commented Feb 7, 2017

You can use collectionLimit for that (default is 50). Which should be in README, indeed.

Also, there is no showObjectKeys prop, only sortObjectKeys.

@rydash
Copy link
Author

rydash commented Feb 7, 2017

Ahh, this is perfect!

(And I'm an ignorant boob - the key I meant to mention was shouldExpandNode, but then I guess I just made one up. Sorry about that!)

@rydash rydash closed this as completed Feb 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants