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

[data grid] Custom components outside of the DataGrid #10474

Open
oliviertassinari opened this issue Sep 25, 2023 · 0 comments
Open

[data grid] Custom components outside of the DataGrid #10474

oliviertassinari opened this issue Sep 25, 2023 · 0 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: logic Logic customizability enhancement This is not a bug, nor a new feature waiting for 👍 Waiting for upvotes

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 25, 2023

Summary 💡

This is a continuation of #2522, about allowing the data grid to be composable, made out of smaller components that are easier to combine.

We have a demo in the docs on how to compose a portal https://mui.com/x/react-data-grid/filtering-recipes/ since #10121 using the <Portal> but it comes with its own problems:

  • no SSR support
  • unintuitive React tree structure & rendering order

Examples 🌈

<DataGridProvider {...data}>
  <GridToolbarContainer>
    <GridToolbarColumnsButton />
    <GridToolbarFilterButton />
    <GridToolbarDensitySelector />
    <GridToolbarExport />
  </GridToolbarContainer>
  <DataGrid />
</DataGridProvider>

Motivation 🔦

  • slots are usually harder to customize than individual components
  • a composable data grid is something that is harder to pull off with an agnostic data grid (React, Vue, etc.)

Search keywords: composable, composition

@oliviertassinari oliviertassinari added component: data grid This is the name of the generic UI component, not the React module! status: waiting for maintainer These issues haven't been looked at yet by a maintainer enhancement This is not a bug, nor a new feature waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 25, 2023
@oliviertassinari oliviertassinari added the customization: logic Logic customizability label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: logic Logic customizability enhancement This is not a bug, nor a new feature waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

1 participant