Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: show total items count in table (#4453)

Yunus Me977963763d1
diff --git a/frontend/src/components/ResizeTable/ResizeTable.tsx b/frontend/src/components/ResizeTable/ResizeTable.tsx
index 90cc588c47..9cbaee0346 100644
--- a/frontend/src/components/ResizeTable/ResizeTable.tsx
+++ b/frontend/src/components/ResizeTable/ResizeTable.tsx
@@ -73,12 +73,18 @@ function ResizeTable({
}
}, [columns]);
+ const paginationConfig = {
+ hideOnSinglePage: true,
+ showTotal: (total: number, range: number[]): string =>
+ `${range[0]}-${range[1]} of ${total} items`,
+ };
+
return onDragColumn ? (
<ReactDragListView.DragColumn {...dragColumnParams} onDragEnd={onDragColumn}>
- <Table {...tableParams} />
+ <Table {...tableParams} pagination={paginationConfig} />
</ReactDragListView.DragColumn>
) : (
- <Table {...tableParams} />
+ <Table {...tableParams} pagination={paginationConfig} />
);
}