-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion about table = no border #169
Comments
Hi @eddyclock , Thanks for the issue. You can create a table without borders by passing a var pptx = new PptxGenJS();
var slide = pptx.addNewSlide();
slide.addTable( ['cell 1','cell 2'], { x:1, y:1, w:3 }, { border:{pt:0} } );
pptx.save('PptxGenJS-TableNoBorder'); I see where this is undocumented, so i'll get it added shortly! |
HI @gitbrent |
hi @gitbrent . |
Thanks @eddyclock ! |
Hi, Thanks, |
how to use 'outside border', can anyone help me out here. |
Dear PPTx Team,
Just my small input about this
if ( cellOpts.border && typeof cellOpts.border === 'string' ) { if (cellOpts.border == 'noborder'){ var intW = 0; var strClr = '<a:noFill/>'; var strAttr = '<a:prstDash val="'; strAttr += "solid"; strAttr += '"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>'; // *** IMPORTANT! *** LRTB order matters! (Reorder a line below to watch the borders go wonky in MS-PPT-2013!!) strXml += '<a:lnL w="'+ intW +'" cap="flat" cmpd="sng" algn="ctr">'+ strClr + strAttr +'</a:lnL>'; strXml += '<a:lnR w="'+ intW +'" cap="flat" cmpd="sng" algn="ctr">'+ strClr + strAttr +'</a:lnR>'; strXml += '<a:lnT w="'+ intW +'" cap="flat" cmpd="sng" algn="ctr">'+ strClr + strAttr +'</a:lnT>'; strXml += '<a:lnB w="'+ intW +'" cap="flat" cmpd="sng" algn="ctr">'+ strClr + strAttr +'</a:lnB>'; }else{ strXml += ' <a:lnL w="'+ ONEPT +'" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:srgbClr val="'+ cellOpts.border +'"/></a:solidFill></a:lnL>'; strXml += ' <a:lnR w="'+ ONEPT +'" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:srgbClr val="'+ cellOpts.border +'"/></a:solidFill></a:lnR>'; strXml += ' <a:lnT w="'+ ONEPT +'" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:srgbClr val="'+ cellOpts.border +'"/></a:solidFill></a:lnT>'; strXml += ' <a:lnB w="'+ ONEPT +'" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:srgbClr val="'+ cellOpts.border +'"/></a:solidFill></a:lnB>'; } }
Thanks,
Eddy Kwok
The text was updated successfully, but these errors were encountered: