Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Finding a way to show Objects Vertically instead of Horizontally. #1397

Open
seAfnan opened this issue Dec 5, 2021 · 3 comments
Open

Finding a way to show Objects Vertically instead of Horizontally. #1397

seAfnan opened this issue Dec 5, 2021 · 3 comments

Comments

@seAfnan
Copy link

seAfnan commented Dec 5, 2021

Before posting this issue, I have read the issue #402. I don't need Table View, I just want to change the current view like below I have shared the pictures.

jsonTable

If a JSON object has a lot of values then its difficult to jump/scroll down to the next object when all the objects are opened. If its possible to show the rows Vertically instead of horizontally then it will be easy to look all the objects at once. Just like this:

jsonadf

@seAfnan seAfnan changed the title Finding a way to show Rows Vertically instead of Horizontally. Finding a way to show Objects Vertically instead of Horizontally. Dec 5, 2021
@josdejong
Copy link
Owner

Thanks for your suggestion Afnan. It is indeed sort of a Table view but then with the items in horizontal direction (flipping rows/colums.

If there is much demand for it we could think this through, though at this moment it feels to me like a very specific view, too specific to implement. Maybe you can create three editors, one for every object, and display them side by side?

@seAfnan
Copy link
Author

seAfnan commented Dec 7, 2021

@josdejong Thanks for you reply.
Yes i was thinking for three editors side by side and as you said its too specific requirement. But it looks not so good to create multiple editors for one JSON data. As i said earlier, my suggestion will help when there are many objects having a lot of values in it. To jump from same key: value from one object to the other takes a lot of scroll down.
But it will also take a lot of time for me to understand and edit jsoneditor js library to restructure JSON current structure.
...
Now i will wait for others if anyone demands for the same thing.

@josdejong
Copy link
Owner

I understand what you say about the scrolling. If you really need to have the same props aligned and scrolling along, I think what you're really looking for is a table view after all (with headers either horizontally or vertically), discussed in #402. That would be a more generic approach that could be interesting for a broader audience.

I think the proposal as you make it above is too specific. If that's what you want I think it's out of scope and we'll close it (and reopen when it turns out many people are interested). If you really need it please don't wait but implement it yourself.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants