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

[docs] adjusted the code example for quickFilterValues #12919

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

Conversation

michelengelen
Copy link
Member


adjusted the value in the code example to represent what is shown in the example
Fixes #12912

@michelengelen michelengelen added docs Improvements or additions to the documentation 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 Apr 26, 2024
@michelengelen michelengelen self-assigned this Apr 26, 2024
@mui-bot
Copy link

mui-bot commented Apr 26, 2024

@@ -19,7 +19,7 @@ The quick filter values can be initialized by setting the `filter.filterModel.qu
filter: {
filterModel: {
items: [],
quickFilterValues: ['quick', 'filter'],
quickFilterValues: ['ab'],
Copy link
Member

Choose a reason for hiding this comment

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

Should we still somehow reinforce that quickFilterValues is of type string[] and spaces in quick filter are used as delimiter to generate this array (which will somehow get hidden by this change)?

Copy link
Member Author

Choose a reason for hiding this comment

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

sry for the late reply. 🙇🏼
Maybe we could also use a more static dataset like the movie data.
Randomized row values could potentially lead to empty results when we initialize them.

WDYT @MBilalShafi ?

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! docs Improvements or additions to the documentation feature: Filtering Related to the data grid Filtering feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Initialize the quick filter values -> ['quick', 'filter'] should be ['ab']
3 participants