Skip to content

fix(table): Added placeholder properties to tables #1151

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BenHall-1
Copy link

@BenHall-1 BenHall-1 commented Aug 22, 2022

Description

Adds the placeholder property to TableProps to allow it to inherit from a given placeholder
Solution for #1135

Example

let rows: pptxgen.TableRow[] = [
        [
          {text: "data1", options: null}, 
          {text: "data2", options: {border: [null, null, {color:'DA70D6'}, null]}},
        ],
        [
          {text: "data3", options: null}, 
          {text: "data4", options: {border: [null, null, {color:'DA70D6'}, null]}},
        ],
        [
          {text: "data5", options: null}, 
          {text: "data6", options: {border: [null, null, {color:'DA70D6'}, null]}},
        ],
      ];
    
    slide.addTable(rows, { placeholder: "table_placeholder", align: "left", fontFace: "Arial" });

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

Successfully merging this pull request may close these issues.

3 participants