-
Notifications
You must be signed in to change notification settings - Fork 648
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
Table-to-Slides default for un-styled tables is black text on black bkgd #57
Comments
Hi @orpitadutta , Could you please attach a screencap instead and provide the code you're using? Thanks. |
<title>DEMO</title>
<script src="nextgen/jquery.min.js"></script>
<script src="nextgen/jszip.min.js"></script>
<script src="nextgen/filesaver.min.js"></script>
<script src="nextgen/pptxgen.js"></script>
<script src="nextgen/pptxgen.shapes.js"></script>
|
Hi @orpitadutta , I think, you need to apply some styles for the table. Currently table - background color is black & also text color is black. So you are seeing black box. @gitbrent Please correct me if i am wrong. Ex:
|
@alagarrk Thanks a lot, It worked but i am unable to change the background of table. Can u please help? |
I tried this: <script type="text/javascript"> function fnppt() { var tabOpts = { x:0.5, y:2.0, w:9.0, fill:'F7F7F7', font_size:18, color:'6f9fc9' }; var pptx = new PptxGenJS(); pptx.addSlidesForTable('mytable',tabOpts ); pptx.save(); } </script>
|
@orpitadutta , For addSlidesForTable() - Reproduces an HTML table - background colors, borders, fonts, padding, etc. So you can add styles using css. For Ex:
Please check this |
@alagarrk Thnxx a lot it worked like a charm.. |
Hi @orpitadutta @alagarrk , Thanks for your help on this Issue. Turns out that the default color returned by jQuery is black, so in un-styled tables, you end up with black text on a black background... I've updated the code to detect this condition and default to a white background instead. |
hi @gitbrent is it possible for addTable to call it on it's ID instead of var array? |
I implemented table to slides but each time a black band appears. Can you please help? Or assist me where am i going wrong?
Presentation (1).pptx
The text was updated successfully, but these errors were encountered: