Skip to content

Expose collapsing state in render hook #36

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

Merged
merged 8 commits into from
Nov 8, 2024

Conversation

dmackdev
Copy link
Owner

@dmackdev dmackdev commented Nov 5, 2024

Closes #29.

  • Removes Copy/Clone derives for RenderContext structs.
  • Exposes CollapsingState on property and expandable delimiter RenderContext structs so the render hook can manipulate/check the expanded state of arrays/objects.
  • Updates JSON Editor UI demo to automatically expand arrays/objects when a new element is added to them, and disables the toggle buttons when an element is being edited.

@dmackdev dmackdev force-pushed the expose-collapsing-state-in-render-hook branch from 4533932 to 9befe13 Compare November 5, 2024 19:04
@dmackdev dmackdev marked this pull request as ready for review November 5, 2024 19:44
@dmackdev dmackdev force-pushed the expose-collapsing-state-in-render-hook branch from d74174d to 637062d Compare November 6, 2024 17:42
@dmackdev dmackdev merged commit 50c617e into master Nov 8, 2024
2 checks passed
@dmackdev dmackdev deleted the expose-collapsing-state-in-render-hook branch November 8, 2024 18:33
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

Successfully merging this pull request may close these issues.

Expose a way to programmatically set the expanded state for arrays/objects
1 participant