Jsoneditor: Hide root object

Created on 24 Aug 2017  路  5Comments  路  Source: josdejong/jsoneditor

Is there an option to hide the root object? (top level of the tree) It would be nice to have an option to show from the 2nd level.

question

All 5 comments

You could hide the root object with some CSS:

    table.jsoneditor-tree > tbody > tr.jsoneditor-expandable:first-child {
      display: none ;
    }

I'm not sure if your use case is generic enough to create a special option for this.

Thank you so much! It worked. I will tweak the style to remove the gap before the second levels.

I saw somebody here want to modify multiple objects in one editor. It would be great for many users if it has an option to remove the top level and adjust the position of the second level.

Thank you for your advice and the great product. Have a good weekend.

Shin

thanks for your suggestions!

The problem with this solution is that when you collapse the whole table, you see nothing since you have hidden the root.

馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PeterBurner picture PeterBurner  路  3Comments

MarkHerhold picture MarkHerhold  路  3Comments

fykcz picture fykcz  路  4Comments

bnewcomer picture bnewcomer  路  6Comments

mashaalmemon picture mashaalmemon  路  7Comments