dmackdev/egui_json_tree

Json Tree Grid Layout Format

Closed this issue · 4 comments

Hello,

Do you have an example showing how to display data in a json tree grid layout?

Anthony

Hi, I am not sure exactly what you mean - could you please clarify?

If you mean showing a JSON tree within a grid, you can see an example of this on my other project: pubsubman:

  • Here is a screenshot of how the JSON tree looks within an egui::Grid - you can also see the grid row expands to accommodate the JSON tree when it has expanded elements.
  • Here is the corresponding code for the above.

Hi,

I don't know how to insert image with Github. Here is a link that shows an example of it https://www.htmlelements.com/docs/grid-tree-grid/. The idea is to present more than 1 field for each leaf of the tree.

Anthony

If you want something to look like a tree grid like in your link, I think egui::Grid would be a more suitable choice.

thank you. I started a new thread in egui to request for help.