Skip to content

Commit e83836e

Browse files
authored
feat: format page number in table widget (#1992)
1 parent 3a4be75 commit e83836e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bigframes/display/table_widget.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ function render({ model, el }) {
8888
const totalPages = Math.ceil(rowCount / pageSize);
8989

9090
rowCountLabel.textContent = `${rowCount.toLocaleString()} total rows`;
91-
paginationLabel.textContent = `Page ${currentPage + 1} of ${totalPages || 1}`;
91+
paginationLabel.textContent = `Page ${(
92+
currentPage + 1
93+
).toLocaleString()} of ${(totalPages || 1).toLocaleString()}`;
9294
prevPage.disabled = currentPage === 0;
9395
nextPage.disabled = currentPage >= totalPages - 1;
9496
pageSizeSelect.value = pageSize;

0 commit comments

Comments
 (0)