Skip to content

Build your personal knowledge base with Trilium Notes

feat(views/table): add row number

Elian Doran0e27cd0801ae
diff --git a/apps/client/src/widgets/view_widgets/table_view/data.ts b/apps/client/src/widgets/view_widgets/table_view/data.ts
index c31df449a8..d9111ffee2 100644
--- a/apps/client/src/widgets/view_widgets/table_view/data.ts
+++ b/apps/client/src/widgets/view_widgets/table_view/data.ts
@@ -31,6 +31,14 @@ export async function buildData(parentNote: FNote, info: PromotedAttributeInform
export function buildColumnDefinitions(info: PromotedAttributeInformation[]) {
const columnDefs: ColumnDefinition[] = [
+ {
+ title: "#",
+ formatter: "rownum",
+ headerSort: false,
+ hozAlign: "center",
+ resizable: false,
+ frozen: true
+ },
{
field: "iconClass",
title: "Icon",