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

Column size updates #132

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Column size updates #132

merged 9 commits into from
Apr 17, 2023

Conversation

BSd3v
Copy link
Collaborator

@BSd3v BSd3v commented Apr 5, 2023

  • removed autoSizeAllColumns
  • made columnSize act upon update
  • added new columnSize available, responsiveSizeToFit which will adjust column sizes based upon grid size and columns added or removed
  • updated sizing tests
  • added columnSizeOptions to take an object that is compatible with AG Grid to perform sizing options as needed

@BSd3v BSd3v linked an issue Apr 5, 2023 that may be closed by this pull request
@AnnMarieW AnnMarieW mentioned this pull request Apr 5, 2023
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Looks great - just a suggestion to make the prop type more precise, otherwise I think this is good to go. I still have some questions about how this will play with saving & restoring a grid, especially if the data may be different in the restored view. But I think in any event we'll be able to use this as a starting point and make non-breaking changes later if we find that something else is needed for that use case.

Co-authored-by: Alex Johnson <alex@plot.ly>
@BSd3v BSd3v merged commit ff6a00a into plotly:dev Apr 17, 2023
@BSd3v BSd3v deleted the column-size-updates branch April 20, 2023 18:21
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.

Feature Request add sizeColumnsToFit prop
2 participants