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

Feature Request: truncate long strings to the collapse length provided #9

Open
CamdenFoucht opened this issue Sep 8, 2023 · 3 comments

Comments

@CamdenFoucht
Copy link

CamdenFoucht commented Sep 8, 2023

When using string collapse, it transforms a very long string into a very short "wha...od" instead of shortening the string to the collapse length provided (i.e 99) such as seeing a more meaningful string: what is going on with...

It would be great if we could control this shortening behavior, or have some way to choose!

@CamdenFoucht CamdenFoucht changed the title Feature Request: truncate long strings to the shorten length provided Feature Request: truncate long strings to the collapse length provided Sep 8, 2023
@YYsuni
Copy link
Owner

YYsuni commented Sep 8, 2023

Your idea is great! I'll update it soon.😀

@YYsuni
Copy link
Owner

YYsuni commented Sep 9, 2023

Hi, the latest canary version now supports the truncation feature. You can try it out by running npm i react18-json-view@canary.
Before that, you could test it on https://jv.yysuni.com/ 😁

@YYsuni
Copy link
Owner

YYsuni commented Sep 12, 2023

It's available on v0.2.5 now 🙌

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

2 participants