Issue on export data

Issue on export data

mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0

Hi,
I noticed that the format.header function is triggered two times for one export action: the first time it's ok, but the second round the function the function is called even on the columns that are not declared in the columns options

In a table of a total of 6 columns, with the following export options for example, the function will be called 9 times, the first round for the 3 columns declared in the exportOptions.columns index array, the second round for all the 6 columns.

exportOptions: {
  columns: [3,4,5],
  format: {
    header: (data, columnIndex, columnElement) => {
      //
    }
  }
}

In the previuos version only the first round of calls was executed.

Next week I'll try to prepare a sandbox to show the problem.

Replies

Sign In or Register to comment.