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

[DataGrid] Add getFilterState method #13418

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

cherniavskii
Copy link
Member

@cherniavskii cherniavskii commented Jun 7, 2024

@cherniavskii cherniavskii added component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature labels Jun 7, 2024
@mui-bot
Copy link

mui-bot commented Jun 7, 2024

Deploy preview: https://deploy-preview-13418--material-ui-x.netlify.app/

Updated pages:

Generated by 🚫 dangerJS against 263bfef

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

Just a few nits! Looks pretty solid! :shipit:

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

sry for the inconvenience! 🙇🏼

docs/data/data-grid/filtering-recipes/filtering-recipes.md Outdated Show resolved Hide resolved
@cherniavskii cherniavskii added customization: logic Logic customizability enhancement This is not a bug, nor a new feature labels Jun 10, 2024
@cherniavskii cherniavskii marked this pull request as ready for review June 10, 2024 21:24
Comment on lines +65 to +70
/**
* Returns the filter state for the given filter model without applying it to the data grid.
* @param {GridFilterModel} filterModel The filter model to get the state for.
* @returns {GridStateCommunity['filter']} The filter state.
*/
getFilterState: (filterModel: GridFilterModel) => GridStateCommunity['filter'];
Copy link
Contributor

Choose a reason for hiding this comment

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

This sounds like it should be a (pure) selector, but I see how that would be annoying to implement.

@cherniavskii cherniavskii enabled auto-merge (squash) June 13, 2024 10:16
@cherniavskii
Copy link
Member Author

@michelengelen I need an approval from you in order to merge it

@cherniavskii cherniavskii merged commit 70c6612 into mui:master Jun 13, 2024
17 checks passed
@LukasTy LukasTy mentioned this pull request Jun 13, 2024
@cherniavskii cherniavskii deleted the get-filtered-rows-count branch June 13, 2024 14:28
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 feature: Filtering Related to the data grid Filtering feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] multiple data sets state management & filtering
5 participants