Skip to content

feat/grid-instead-of-flex #64

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

Merged
merged 17 commits into from
Jun 28, 2022
Merged

feat/grid-instead-of-flex #64

merged 17 commits into from
Jun 28, 2022

Conversation

rwieruch
Copy link
Contributor

The main things that have changed:

  • layout via --data-table-library_grid-template-columns (everything acceptable what a CSS grid-template-columns property would accept) on Table property when using useTheme() instead of width/min-width on each BaseCell (see FEATURES/Layout stories)
  • table elements (e.g. table, td, th) instead of div elements, but they can be transformed as div elements by using layout={{ isDiv: true }} (see MISC/Table story)
  • less internal styling (padding, margin, etc.), it should be done by individual theming instead (see FEATURES/Theme)

  • hide feature: hideKey: string became hide: boolean on each HeaderCell/Cell, hiddenColumns in layout not necessary anymore (see FEATURES/Hide Column stories)
  • fixed header feature: layout={{ fixedHeader: true }}
  • controlled layout: layout={{ resizedLayout: string }} and layout={{ onLayoutChange: (gridTemplateColumns: string) => void }} instead of using string[]

  • new Virtualized component for opt-in virtualization (see FEATURES/Virtualized story)

rwieruch added 17 commits June 23, 2022 16:53
- less internal styling (padding, margin, etc.)
- new Virtualized component for opt-in virtualization
- table elements instead of div elements
        - [ ] make it adjustable
- layout via grid-template-columns instead of width/min-width
- hide: hideKey: string became hide: boolean
- layout={{ fixedHeader: true }}
- layout={{ resizedLayout: string }}
- layout={{ onLayoutChange: (gridTemplateColumns: string) => void }}

BREAKING CHANGE:
…s, and window gets bigger, the stiff column does not take all space and there is whitespace
@rwieruch rwieruch merged commit 7489a29 into master Jun 28, 2022
@github-actions
Copy link

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant