mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
155 stars 89 forks source link

How to set Code view as default one ? #98

Closed Msnehitha closed 2 years ago

Msnehitha commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

mariohmol commented 2 years ago

Hi, you can use the mode option from options

 // code, text, tree, form and view
    this.editorOptions.mode = 'view'

I added this example on demo.component

thanks