Open
Description
Q&A (please complete the following information)
- OS: [Linux]
- Browser: [chrome, safari]
- Method of installation: [yarn add swagger-editor]
- Swagger-Editor version: [4.5.1]
- Swagger/OpenAPI version: [OpenAPI 3.0]
Content & configuration
In my app, I give three redio to switch layout mode:
<radio value="left">Only Left Pane(Editor)</radio>
<radio value="right">Only Right Pane(UI)</radio>
<radio value="both">Both Panes(Split)</radio>
I have seen the editor provides a layoutActions
and I invoke with:
editor.layoutActions.changeMode(['split_pane_mode'], 'left')
No works any more. And then I invoke with:
editor.layoutActions.updateLayout(['split_pane_mode'])
No works else.
Screenshots
How can we help?
So I wonder what behavior will these two methods do? Thank you for all helps! And the right way to change layout mode?
Metadata
Metadata
Assignees
Labels
No labels