Skip to content

Commit

Permalink
Add functionality to add comment to cell
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Oct 18, 2023
1 parent 2ab3719 commit d577bc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/HtmlPhpExcel/HtmlPhpExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ private function createExcel(): void
$sheet->setRowHeight($rowIndex, $cellStyles['height']);
}

$cellComment = $cell->getAttribute('_excel-comment');
if ($cellComment) {
$sheet->addNote(Excel::cellAddress($rowIndex, $colIndex), $cellComment);
}

$colIndex++;
}

Expand Down

0 comments on commit d577bc8

Please sign in to comment.