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

Set fixed width to column using "addSlidesForTable". #42

Closed
priyaraskar opened this issue Feb 14, 2017 · 3 comments
Closed

Set fixed width to column using "addSlidesForTable". #42

priyaraskar opened this issue Feb 14, 2017 · 3 comments
Assignees
Milestone

Comments

@priyaraskar
Copy link

I am trying to fix the width of Col2 column, as shown in table,
but it always takes same width for all columns.
image

How to provide width style to column?

@gitbrent gitbrent self-assigned this Feb 14, 2017
@gitbrent
Copy link
Owner

Hi @priyaraskar

I'll look into adding a way to specify a size for columns (either inches or percent).

@gitbrent gitbrent added this to the v1.2.2 milestone Mar 2, 2017
@gitbrent gitbrent modified the milestones: 1.3.0, v1.2.2 Mar 11, 2017
@gitbrent
Copy link
Owner

gitbrent commented Mar 11, 2017

Hi @priyaraskar

If you generating the table from an HTML table using addSlidesForTable() then you can utilize a data tag to specify a minimum width.

Example:

<table>
  <thead>
    <th data-pptx-min-width="0.75">Emp ID</th>
    <th>First Name</th>
    <th>Last Name</th>
  </thead>
  <tbody>
  [...]
  </tbody>
</table>

gitbrent pushed a commit that referenced this issue Mar 11, 2017
@gitbrent
Copy link
Owner

Update:

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

No branches or pull requests

2 participants