tolims filter, pagination

This commit is contained in:
2026-03-29 17:13:54 +03:00
parent 3e66d67dc5
commit c573a46318
7 changed files with 768 additions and 57 deletions
+5 -1
View File
@@ -18,7 +18,7 @@
const data = window.gridData || [];
const meta = window.gridMeta || {};
const columns = meta.columns || [];
const totalRows = data.length;
let totalRows = data.length;
// ── DOM refs ────────────────────────────────────────────────────────────
let rowContainer = null;
@@ -463,6 +463,10 @@
function renderVisibleRows() {
if (!rowContainer) return;
// Refresh totalRows in case data was modified externally
totalRows = data.length;
if (revealedCount < totalRows) revealedCount = totalRows;
// Destroy Select2 on existing rows
$(rowContainer).find('.select2-hidden-accessible').select2('destroy');