Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Mar 14, 2023
1 parent e8b684c commit b517397
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ class TableVisualization extends Visualization {
dataTruncated = parsedData.all_rows_count !== rowData.length
}

// If the table contains more rows than an upper limit, the engine will send only some of all rows.
// If data is truncated, we cannot rely on sorting/filtering so will disable.
// A pinned row is added to tell the user the row count and that filter/sort is disabled.
if (dataTruncated) {
columnDefs[0].colSpan = p => {
if (p.data['__COL_SPAN__'] !== undefined) {
Expand Down

0 comments on commit b517397

Please sign in to comment.