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

table dynamic column width based on text length #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codygulley
Copy link

@codygulley codygulley commented Nov 25, 2023

This contribution provides the following feature:

  • default behavior is to make column as wide as the longest text in the column (headers included)
  • columnWidth option is no longer mandatory
  • if columnWidth is omitted it will calculate the width based on the length of text in the column (headers and data)
  • if columnWidth is defined for the column index in the columnWidth array it will use that value, if it is undefined or null it will calculate the value.
Screenshot 2023-11-25 at 2 45 58 AM

cc: @lirantal @yaronn

@codygulley codygulley changed the title dynamic column width based on text length - optimized to only run cal… table dynamic column width based on text length Nov 25, 2023
@codygulley
Copy link
Author

Can I get reviews on this @yaronn ?

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

Successfully merging this pull request may close these issues.

1 participant