Skip to content
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

How to make table width 100% of page size #44

Closed
infacq opened this issue Jul 2, 2014 · 4 comments
Closed

How to make table width 100% of page size #44

infacq opened this issue Jul 2, 2014 · 4 comments

Comments

@infacq
Copy link

infacq commented Jul 2, 2014

No description provided.

@bpampuch
Copy link
Owner

bpampuch commented Jul 2, 2014

set at least one column to star-sizing

@infacq
Copy link
Author

infacq commented Jul 2, 2014

nice. Thank you

@hisuwh
Copy link

hisuwh commented Sep 9, 2021

When you're dynamically generating tables this isn't helpful because you're not necessarily setting the right column to * and you can end up with a wonky looking table.

I want all my columns as auto but taking up the full width of the page. Is this not possible?

@sinaf97
Copy link

sinaf97 commented Dec 6, 2021

When you're dynamically generating tables this isn't helpful because you're not necessarily setting the right column to * and you can end up with a wonky looking table.

I want all my columns as auto but taking up the full width of the page. Is this not possible?

You can set widths property to ['*', '*', '*', ..., '*', '*', 'auto']. This way your last cell will remain automatic(to avoid page overflow) while other cells are filling the page width. You can use ...[Array(headers,length-2).fill('*'), 'auto'] to create it dynamically.

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

No branches or pull requests

4 participants