Skip to content

Commit

Permalink
tabulator: fix pdf and xlsx exports not respecting column visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuffad committed Jan 28, 2025
1 parent 15752f2 commit d99a7d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/tabulator-table/src/tabulator-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ export class TabulatorTable extends ScopedElementsMixin(DBPLitElement) {
for (let cell of cells) {
let column = cell.getColumn();
let definition = column.getDefinition();
if (!definition.visible) {
continue;
}
let field = cell.getField();
if(field !== 'empty' && field !== 'undefined' && definition.formatter !== 'html') {
entry[field] = cell.getValue();
Expand All @@ -476,6 +479,9 @@ export class TabulatorTable extends ScopedElementsMixin(DBPLitElement) {
let header = [];
for(let column of columns) {
let definition = column.getDefinition();
if (!definition.visible) {
continue;
}
let field = column.getField();
if(field!== 'empty' && field !== 'undefined' && definition.formatter !== 'html')
header.push(column.getField());
Expand Down

0 comments on commit d99a7d3

Please sign in to comment.