Fixed typo, HIDE_GRIDLINES instead of HIDE_GRIDLINE
[p5sagit/Excel-Template.git] / lib / Excel / Template / Element / Cell.pm
index a9a610b..1fd6bc7 100755 (executable)
@@ -99,6 +99,11 @@ sub render
         $context->active_format,
     );
 
+    my $comment = $context->get($self, 'COMMENT');
+    if (defined $comment && length $comment){
+         $context->active_worksheet->write_comment($row, $col,$comment);
+    }
+
     return 1;
 }
 
@@ -155,6 +160,10 @@ This allows you to specify what write_*() method will be used. The default is to
 
 The legal types (taken from L<Spreadsheet::WriteExcel>) are:
 
+=item * COMMENT
+
+Add a comment to the cell
+
 =over 4
 
 =item * blank