Open
Conversation
…hildren up to a specified generation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We like this editor implementation and look and feel, but in order to integrate into our apps, we need to adjust some of its functionality.
This PR adds the following props to the
Editorcomponent:hideInsertObjectButton: iftrue, hides the top clickable banner that adds a new object.isReadOnly: if true, hides the buttons that appear on mouse over to add/edit/delete a field, disable onclick and leaves cursor as default.expandToGeneration: if specified, only expand the objects and its nested fields to the specified "generation" (by "expand" we mean "show the children nodes"). For example,0shows the objects fields, but not their fields content (if they are arrays or objects).1would show the objects fields content.2would show the objects fields content fields content, and so on and so forth.If these flags are not specified, the current behavior of this component remains unchanged so that we don't affect current users of the component.