How to make a tables?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alexandr

How to make tables like html in Godot?

Your question is very vague. Can you explain what are you trying to achieve?

gtkampos | 2018-11-01 18:07

need to make a table to output data. there must be columns and rows (or just cells) and the most important must be frames around the cell.

Alexandr | 2018-11-01 18:54

:bust_in_silhouette: Reply From: Zylann

There is a way to layout Control nodes in a grid using the GridContainer node, however you may have to draw the grid lines yourself. Either from the nodes you place in the grid (by changing their theme to a StyleBoxFlat with borders for example), or using custom _draw() from a script on the grid container.

Another way is to use an ItemList node with multiple columns. This one is data-driven instead and does not “contain” nodes, but I know less about theming it though (for example, the “icon mode view” in Godot’s FileExplorer is made using an ItemList).