json-editor icon indicating copy to clipboard operation
json-editor copied to clipboard

"tabs" layout for objects

Open kdavy opened this issue 10 years ago • 5 comments

First off, I love what you've done here. Very cool.

It would be nice if I could force the properties of an object to be displayed in separate tabs. For example, if I had something like this: {"type": "object", "options": {"layout": "tabs}, // props in this obj should be in tabs "properties": {"prop1" {"type" { some complex type}} "prop2" {"type" {some other complex type}}}}

Then prop1 and prop2 would each be in their own tabs.

Thanks.

kdavy avatar May 20 '14 15:05 kdavy

I like this idea. I can definitely see some potential use cases. I'll plan to implement this soon.

jdorn avatar Jun 02 '14 06:06 jdorn

Sorry to ask but has this been implemented yet? I am looking for a module/plugin for json forms that can actually do this and this plugin seems to be the only active one.

So I was wondering if we are going to see this implemented soon. Thanks!

DJWassink avatar Aug 06 '14 19:08 DJWassink

Yes please, this would be fantastic. Any update on this?

cammm avatar Sep 19 '14 14:09 cammm

What would also be awesome, when you have nested objects you can push them all to the tab menu of the main object. So if we have something like this:

'Object1': {
  'foo1': 'bar1',
  'Object2': {
    'foo2': 'bar2'
  }
}

We would have a tab called Object1 and Object2 and inside them you would have foo1 and foo2. Object2 is nested in Object1 but it would still be nice to have a option to let them be in the same "tab menu".

Ofcourse this will be difficult? Because how would you manage nested object that you don't want to appear in tab menu? I have been thinking about that, but I think the best way to do it would be a reference in a object's options to which tab menu it would belong?

DJWassink avatar Sep 27 '14 08:09 DJWassink

Thanks for the great tool, it saved me lots of time. Was also wondering if this will be implemented? Would reduce my huge form by 70%. Looking forward

emilb604 avatar Mar 12 '18 23:03 emilb604