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

fix: #163 implement method .select() and callback onSelect #299

Merged
merged 28 commits into from
Aug 14, 2023

Conversation

josdejong
Copy link
Owner

See #163

This PR:

  • Refactors the JSONSelection type: remove derived and redundant information from it to make it suitable for a public API
  • Implements a new TextSelection for text mode, and an overarching JSONEditorSelection
  • Implements a method .select(selection: JSONEditorSelection | null) for all modes (text, tree, table)
  • Implements a callback onSelect(newSelection: JSONEditorSelection | null) for all modes (text, tree, table)

@josdejong josdejong changed the title Fix #163: implement method .select() and callback onSelect fix: #163 implement method .select() and callback onSelect Aug 14, 2023
@josdejong josdejong merged commit 69a9698 into main Aug 14, 2023
3 checks passed
@josdejong josdejong deleted the feat/selection_api branch August 14, 2023 13:38
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.

1 participant