Open marcklingen opened 1 year ago
Is there a smart way to achieve this with customizeNode
? If I render a custom element to add the size of the array, I cannot use setFold
to change whether it is collapsed
This is indeed an issue that I haven't considered, and I will optimize it soon. Thank you for bringing this to my attention.๐ซกโค๏ธ
Hi, I have updated it as you suggested, which makes a better experience. You can use it by running npm i react18-json-view@canary
, or view the website: https://jv.yysuni.com/.
Thanks for the advice.โค๏ธ๐
Hi @YYsuni, thank you, just upgrade and it looks great.
It might be interesting to offer more options:
Example from our app
-> size on collapsed objects is very useful, on expanded ones it is a bit noisy and not necessary
You are a genius, I never thought of that before.๐ , I will do it.
Now I have finished it and released the lastest canary version.๐
Now it is available in the latest version.
haha๐๐ congratualtion!
I want to show the size of collapsed arrays/objects to help users understand that they can expand it. (I understand that displaySize is wip/canary)
Currently (even when
displaySize={true}
)Suggestion
Thank you for your effort on this, this package is super useful!