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

Start with certain nodes collapsed by specifying a path (NOT DEEP). #112

Open
flakobatako opened this issue Mar 17, 2021 · 1 comment
Open

Comments

@flakobatako
Copy link

flakobatako commented Mar 17, 2021

Hi.

Is it possible to start with certain nodes collapsed, not by using the deep feature, but specifying some path(s)?

For example i have a JSON like this:

"response_list": [
{
"destination": "Dest.1",
"mapped_request": { NESTED JSON DATA}
},
{
"destination": "Dest.2",
"mapped_request": { NESTED JSON DATA}
}]

I want to be able to specify wich destination inside the response list to be collapsed in the beggining.

For example with ONLY the first item as collapsed by default:
"response_list": [
{ ... },
{
"destination": "Dest.2",
"mapped_request": { NESTED JSON DATA}
}]

Here's a screenshoot:
image

I cannot use DEEP, because that would collapse every object at the same level and I don't want that.

Thanks in advance.

@leezng
Copy link
Owner

leezng commented Mar 19, 2021

I guess you mean you want to have a prop similar to collapsedPaths.

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