Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Closed
hhq365 opened this issue Jan 14, 2022 · 3 comments
Closed

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

hhq365 opened this issue Jan 14, 2022 · 3 comments
Assignees
Milestone

Comments

@hhq365
Copy link

hhq365 commented Jan 14, 2022

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

@hhq365 hhq365 changed the title underline doesn't work in table underline doesn't work in table when update to V3.9.0 Jan 14, 2022
@hhq365 hhq365 closed this as completed Jan 20, 2022
@gitbrent gitbrent reopened this Jan 30, 2022
@gitbrent gitbrent self-assigned this Jan 30, 2022
@gitbrent gitbrent added this to the 3.10.0 milestone Jan 30, 2022
@hhq365
Copy link
Author

hhq365 commented Feb 7, 2022

Maybe it's api fault.
This way is workable:
options:{underline: { style:"sng"}}

@hhq365 hhq365 closed this as completed Feb 7, 2022
gitbrent added a commit that referenced this issue Feb 20, 2022
gitbrent added a commit that referenced this issue Feb 20, 2022
@gitbrent
Copy link
Owner

Thanks @hhq365 - i've updated the table demo code

@abdessamadpas
Copy link

Maybe it's api fault. This way is workable: options:{underline: { style:"sng"}}

that's work for me , thank u so much , so for :
table :
underline = { style:"sng"};
for normal text:
underline =true;

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants