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 can I define a max-cell-width? #749

Closed
fralfarom opened this issue Dec 3, 2020 · 3 comments
Closed

how can I define a max-cell-width? #749

fralfarom opened this issue Dec 3, 2020 · 3 comments

Comments

@fralfarom
Copy link

fralfarom commented Dec 3, 2020

Hi! I'm needing define a max-cell-width to all cells(I'm getting data from a API) I know about cellWidth: number but this set alls cells width to cellWidth value...I need all cells to have free width but not exceed a maximum width.
imagen

for example in the photo the cellWidth is set in 25 and idError, idInstance has more than it needs...is there any way to do it?
Thank You!!

@vbinithyanandamv
Copy link
Contributor

did you tried styles: { maxCellWidth : number } ?? that should work.

@stale
Copy link

stale bot commented Dec 24, 2020

This issue has been automatically closed since the issues in this project are mainly used for bugs and feature requests. Questions are directed to stackoverflow.

@bonbonsiregar
Copy link

did you tried styles: { maxCellWidth : number } ?? that should work.

Is there a way for autotable to automatically resize the cell based on the text length?

https://stackoverflow.com/a/54306551/15471776

Here I found properties like styles: { cellWidth: 'auto', cellWidth: 'wrap' } are these valid?

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