Swagger-editor: New editor: no way to fold left panel

Created on 21 Apr 2017  路  9Comments  路  Source: swagger-api/swagger-editor

Didnt find any button to fold left panel with swagger config
Very useful feature in old one ;)

P2 feature 3.x

Most helpful comment

A simple document.getElementsByClassName("Pane2")[0].style.width = "100%"; (via the JS console on the browser) hides the editor pane. Obviously this is not the proper solution for it. Hey, but it at least helps folks who want to maximize the right pane until there is a proper solution in place. To get back the editor pane run the same JS snippet but with the value as 50%.

I tried editing the menu files specifically standalone/topbar/topbar.jsx to have a menu item for this. But something tells me that ain't the right place to make this change. Pointers?

All 9 comments

What do you mean by fold the left panel?

@webron
this thing:

screen shot 2017-04-21 at 19 05 22

I can click on it and left panel will be minimized

Thanks for the explanation. Is the goal to have a view only mode? If not, what would be the reason to do that? Trying to understand.

@webron yes, you understand it right, want to see only rendered config

The new Swagger-Editor is just a plugin to Swagger-UI. If you want only the view part, simply use Swagger-UI and you'll get exactly the same result, without the need to configure anything.

+1

Swagger-UI means you either are running everything local, hosting everything or have to use the petstore demo and have to host your definition does it not? It is useful to be able to view the output in the editor but hide json/yaml definition.

In the very least it was useful to be able to change the size of each pane while editing, which is also no longer feasible.

We'd be happy to review PRs that work that in :)

A simple document.getElementsByClassName("Pane2")[0].style.width = "100%"; (via the JS console on the browser) hides the editor pane. Obviously this is not the proper solution for it. Hey, but it at least helps folks who want to maximize the right pane until there is a proper solution in place. To get back the editor pane run the same JS snippet but with the value as 50%.

I tried editing the menu files specifically standalone/topbar/topbar.jsx to have a menu item for this. But something tells me that ain't the right place to make this change. Pointers?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delim29 picture delim29  路  4Comments

confuser picture confuser  路  6Comments

ljerka picture ljerka  路  5Comments

Andriy-Kulak picture Andriy-Kulak  路  3Comments

marcopiraccini picture marcopiraccini  路  3Comments