table icon indicating copy to clipboard operation
table copied to clipboard

optionally remove column width

Open kchojhu opened this issue 9 years ago • 3 comments

Thanks for the great plugin! I see that default value for min-width 100 but in my case I don't want to set the width of the column and just let the browser calculate the width to show the values. I try to set the 'minWidth' or 'width' to null or undefined but didn't work.

kchojhu avatar Mar 06 '17 16:03 kchojhu

You may want to check out a proposed solution in issue #94

It is handled via looping over the data and setting some state

scottclayton avatar Mar 06 '17 17:03 scottclayton

Thanks for fast reply! I'll try that out

On Mon, Mar 6, 2017 at 12:47 PM, scottclayton [email protected] wrote:

You may want to check out a proposed solution in issue #94 https://github.com/tannerlinsley/react-table/issues/94

It is handled via looping over the data and setting some state

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tannerlinsley/react-table/issues/113#issuecomment-284474482, or mute the thread https://github.com/notifications/unsubscribe-auth/ACKdhoLcX7lLomQ_pnSPAAWGeSHCoFvaks5rjEaggaJpZM4MUYg7 .

kchojhu avatar Mar 06 '17 17:03 kchojhu

I second @scottclayton's suggestion. For now, there is no built-in way of auto-sizing columns, but his solution works fairly well for now.

tannerlinsley avatar Mar 06 '17 18:03 tannerlinsley