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

Automatically adjust column sizes while dynamically hiding and showing columns. #5766

Open
2 tasks done
paddu1246 opened this issue Oct 1, 2024 · 0 comments
Open
2 tasks done

Comments

@paddu1246
Copy link

paddu1246 commented Oct 1, 2024

TanStack Table version

8.20.5

Framework/Library version

react ^18.2.0

Describe the bug and the steps to reproduce it

Automatically adjust column sizes while dynamically hiding and showing columns.

Could you please help me with how to adjust columns automatically?

below code

`<th
key={header.id}
colSpan={header.colSpan}
style={{
display: 'flex',
width: header.getSize()
}}

<td
    key={cell.id}
    style={{
        width: cell.column.getSize()
    }}
>`

`<th
key={header.id}
colSpan={header.colSpan}
style={{
display: 'flex',
width: header.getSize(),
}}

 <td
     key={cell.id}
     style={{
         width: cell.column.getSize()
      }}
   >`

table

Thanks advance

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

NO

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant