Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event for start printing row and cell #3039

Merged
merged 12 commits into from
Sep 10, 2021
Prev Previous commit
Next Next commit
Update cell.js
  • Loading branch information
mojtaba-khallash committed Sep 4, 2021
commit 779c40f81a1cfbcf0eae63403285cdfddca6c63b
4 changes: 2 additions & 2 deletions src/modules/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ import { jsPDF } from "../jspdf.js";
return pv;
}, {});
for (i = 0; i < data.length; i += 1) {
if (config.rowStart) {
if (("rowStart" in config) && (config.rowStart instanceof Function) {
config.rowStart({
row: i,
data: data[i]
Expand All @@ -540,7 +540,7 @@ import { jsPDF } from "../jspdf.js";

for (j = 0; j < headerNames.length; j += 1) {
var cellData = data[i][headerNames[j]];
if (config.cellStart) {
if (("cellStart" in config) && (config.cellStart instanceof Function) {
config.cellStart({
row: i,
col: j,
Expand Down