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

Need help in getting tree state(expanded or collapsed) of JSON schema #161

Open
sreevidyaJ opened this issue Jul 28, 2021 · 1 comment
Open

Comments

@sreevidyaJ
Copy link

sreevidyaJ commented Jul 28, 2021

Hi Team,

I'm new to @stoplight/json-schema-viewer. I'm using @stoplight/json-schema-viewer: 3.1.1 version

<JsonSchemaViewer name="Todos Model" schema={schema} expanded={true} hideTopBar={false} emptyText="No schema defined" defaultExpandedDepth={0} />
I'm implementing expand all and collapse all feature. I want to get tree state of json schema(if any node is expanded or not), that I could use it for further coding.
could you please help me, how can i get the tree state.

Thanks,
Sreevidya

@weyert
Copy link
Contributor

weyert commented Sep 1, 2023

@sreevidyaJ Did you ever found a solution?

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