Skip to content

underline doesn't work in table when update to V3.9.0 #1052

@hhq365

Description

@hhq365

let pptx = new PptxGenJS();
let slide =pptx.addSlide();

	var arrTabRows = [
		[
			{ text: 'White', options: { fill: { color: '6699CC' }, color:'FFFFFF' } },
			{ text: 'Yellow', options: { fill: { color: '99AACC' }, color: 'FFFFAA' } },
			{ text: 'Pink', options: { fill: { color: 'AACCFF' }, color: 'E140FE' } }
		],
		[
			{ text: '12pt', options: { fill: { color: 'FF0000' }, fontSize: 12 } },
			{ text: '20pt', options: { fill: { color: '00FF00' }, fontSize: 20 } },
			{ text: '28pt', options: { fill: { color: '0000FF' }, fontSize: 28 } }
		],
		[
			{ text: 'Bold', options: { fill: { color: '003366' }, bold: true } },
			{ text: 'Underline', options: { fill: { color: '336699' }, underline: true } },
			{ text: '10pt Pad', options: { fill: { color: '6699CC' }, margin: 10 } }
		]
	];

	slide.addTable(
		arrTabRows, { x:6.0, y:1.1, w:7.0, rowH:0.75, fill:{color:'F7F7F7'}, color:'FFFFFF', fontSize:16, valign:'center', align:'center', border:{pt:'1', color:'FFFFFF'} }
	);

pptx.writeFile();

image

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions