You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It looks like the 'templates' option is missing in the JsonEditorOptions class. It allows preparing predefined JSON parts to be easily inserted.
Expected behavior
JsonEditorOptions should have templates field allowing to set an array of "buttons" (text, title, className, field, value: any )
Screenshots
If applicable, add screenshots to help explain your problem.
Screen from JSONEditor options linked from README.
The text was updated successfully, but these errors were encountered:
As whole settings object is forwarded to the underlying library, as for know it can be tricked with the following code: let editorOptions: JsonEditorOptions = new JsonEditorOptions(); (<any>this.editorOptions).templates = [{menu options objects as in json editor documentation}]
Describe the bug
It looks like the 'templates' option is missing in the JsonEditorOptions class. It allows preparing predefined JSON parts to be easily inserted.
Expected behavior
JsonEditorOptions should have templates field allowing to set an array of "buttons" (text, title, className, field, value: any )
Screenshots
If applicable, add screenshots to help explain your problem.
Screen from JSONEditor options linked from README.
The text was updated successfully, but these errors were encountered: