DeepBlueCLtd / json-schema-editor

JSON Editor focussed on developing/editing JSON Schema documents
https://deepbluecltd.github.io/json-schema-editor/
GNU General Public License v3.0
9 stars 2 forks source link

Reduce demo to minimal features #12

Closed IanMayo closed 5 years ago

IanMayo commented 5 years ago

We should reduce the demo (or produce another version, titled minimum.js), to have a reduced UI.

image

pmk65 commented 5 years ago

You could also hide things like the meta schema editor and config options in a slide-in panel. That's what I did for my Playground page. That free up a lot of space, but the data is still quickly available when needed. Here's the JS/CSS I made in case you might find it useful. https://codepen.io/pmk/pen/zeVEWX

IanMayo commented 5 years ago

@Franciman - I propose this layout for our minimal editor: schema editor layout production

It's a real conundrum whether we put them side by side or above and below. In use the forms will frequently be quite wide, particularly when an array of elements are being produced. That justified putting one above the other.

But, the schema editor frequently gets quite tall one we've got a lot of elements defined.

In the above diagram I suggested laying them out vertically. But each should be in a scrolling pane. So, the editor and preview will each consume 50% the window height, introducing scroll bars when necessary.