PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Add multiple line text in Table column

Open jenkinsns opened this issue 9 years ago • 2 comments

Is there a way to add multiple line of text's in columns?

I have a table with 3 columns and 5 rows. One of the column values are like points. (multiple lines) Ex: Line one Line two ... Line nnn

I need to display as points inside the column, Is there a way to add the multiple line text's inside the column?

jenkinsns avatar Feb 01 '17 15:02 jenkinsns

Hi,

Sure, just use either standard line break: "\r" or "\n".

slide.addTable( ['Line 1\nLine 2\nLine 3'], { x:2, y:3, w:4 });

I've updated the README as well.

Thanks!

gitbrent avatar Feb 01 '17 18:02 gitbrent

Thank you very much @gitbrent

jenkinsns avatar Feb 02 '17 09:02 jenkinsns