Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Specify column widths? #129

Answered by rwieruch
BarbaraPruz asked this question in Q&A
Discussion options

Just getting started and so far, this looks like the right package for our app.
But one styling issue that I can seem to figure out. This seems like a really common requirement. I want to size some of my columns. For example, I have a "State" column with values that will only be 2 characters and so I want to make that column smaller than others. Likewise, I have an email column that I would like to have a minimum width.
Is there a way to do this?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

You can layout each column individually. Does this help? https://react-table-library.com/?path=/docs/features-layout--custom

You must be logged in to vote
1 reply
Comment options

Success! I was missing the layout={{ custom: true }}
Thanks for quick reply.

Answer selected by BarbaraPruz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /