-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add tables support #520
Comments
@wyozi Could you please give me some alternatives? or suggest a slide with an editable table structure? |
@juanmako unfortunately cannot be achieved as is currently. However, implementing the |
@wyozi Thanks! Is there any way to get the raw PPTXGenJS object and modified before download?? |
I'll try to explain the way I would do it :)
The normalized internal slide type might look something like this: export type InternalTable = ObjectBase & {
kind: "table";
rows: Array<Array<string>>
}; |
These are essentially the steps you have to take. There's no any "easier" way to access the raw PPTXGenJS object right now and I'm not sure if there even should be. |
@juanesquintero I'll take a closer look actually and see if I can implement this. There's some interesting challenges involved |
@wyozi Great! with thoose instructions I will work on the PR soon! |
It's not quite where I want to be, but should cover at least basic table operations. See |
@juanesquintero the commit I linked has a full Table implementation, so I'd suggest trying it out or at least basing your work on top of it :) |
@wyozi Thanks a million! already test it and the table generation is great! I will try to work on the preview part, since is only previewing the text and not the other styles... |
https://gitbrent.github.io/PptxGenJS/docs/api-tables/
Could probably use similar DOM structure as HTML tables,
<Table><TableRow><TableCell>Aaa</TableCell><TableCell>BBB</TableCell></TableRow></Table>
The text was updated successfully, but these errors were encountered: