-
Notifications
You must be signed in to change notification settings - Fork 2
feat(DataGrid): Add button in the side panel to reset all filters #90
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
base: main
Are you sure you want to change the base?
Conversation
866cbfb to
0ffb83c
Compare
| .some(([key, value]) => JSON.stringify(this.initialParameters[key]) !== JSON.stringify(value)) | ||
| } | ||
|
|
||
| private restoreDefaultParameters = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restoreDefaultParameters should be separate to ensure compatibility with future ModdableDataGrid.
| .filter(([_, value]) => value !== undefined | ||
| && value !== '' | ||
| && (!(value instanceof Array) || value.length > 0)) | ||
| .some(([key, value]) => JSON.stringify(this.initialParameters[key]) !== JSON.stringify(value)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have similar stuff in ModdableDataGrid (see definedParameters) but I am unsure if we need to install @a11d/equals here. Maybe we should somehow make this package global? (like structuredClone polyfill)
…ton in the side panel
41fabb0 to
ed54b75
Compare
60da515 to
46819b7
Compare
It should be reviewed by Lilia first.