docs/User Guide/User Guide/Collections/Table.md
The table view displays information in a grid, where the rows are individual notes and the columns are <a class="reference-link" href="../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a>. In addition, values are editable.
The tabular structure is represented as such:
name, only one will be displayed.There are also a few predefined columns:
# symbol.
Right click on an existing note in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a> and select Insert child note and look for Table.
Each column is a promoted or unpromoted attribute that is defined on the Collection note.
To create a new column, either:
Each row is actually a note that is a child of the Collection note.
To create a new note, either:
By default it will try to edit the title of the newly created note.
Alternatively, the note can be created from the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a> or scripting.
There are multiple menus:
Simply click on a cell within a row to change its value. The change will not only reflect in the table, but also as an attribute of the corresponding note.
It is possible to edit a column by right clicking it and selecting Edit column. This will basically change the label/relation definition at the collection level.
If the Name field of a column is changed, this will trigger a batch operation in which the corresponding label/relation will be renamed in all the children.
By default, the order of the notes matches the order in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>. However, it is possible to sort the data by the values of a column:
Notes can be dragged around to change their order. To do so, move the mouse over the three vertical dots near the number row and drag the mouse to the desired position.
This will also change the order of the note in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>.
Reordering does have some limitations:
#sorted, reordering will be disabled.If the child notes of the collection also have their own child notes, then they will be displayed in a hierarchy.
Next to the title of each element there will be a button to expand or collapse. By default, all items are expanded.
Since nesting is not always desirable, it is possible to limit the nesting to a certain number of levels or even disable it completely. To do so, either:
maxNestingDepth to the desired value.Limitations:
The table view can be used in a <a class="reference-link" href="../Note%20Types/Saved%20Search.md">Saved Search</a> by adding the #viewType=table attribute.
Unlike when used in a Collection, saved searches are not limited to the sub-hierarchy of a note and allows for advanced queries thanks to the power of the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a>.
However, there are also some limitations:
Columns are supported, by being defined as <a class="reference-link" href="../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a> to the <a class="reference-link" href="../Note%20Types/Saved%20Search.md">Saved Search</a> note.
Editing is also supported.