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

[Feat][Grid] Allows passing null to indicate empty value to state properties #2933

Open
kirchoni opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
Enhancement New feature of an existing functionality or an improvement of an existing functionality pkg:Grid Question
Milestone

Comments

@kirchoni
Copy link
Contributor

kirchoni commented Mar 4, 2025

For state properties like sort,filter,select etc. the Grid accepts either a Descriptor or undefined - However the undefined` value falls back to the internal state's value, which makes reseting the grid's state to "nothing" a bit more vaguely then we want to. For example, to reset the filter, one must set it's "default" value which actually is:

setFilter({ logic: 'and', filters: [] })

We would like to explore the possibility to pass null which would keep the component in it's controlled-state but still allows easier way to reset it's value.

This would affect the following properties:

  • filter
  • sort
  • skip/take
  • group
  • detailExpand
  • groupExpand
  • select
  • edit
@kirchoni kirchoni added Enhancement New feature of an existing functionality or an improvement of an existing functionality pkg:Grid Question labels Mar 4, 2025
@kirchoni kirchoni added this to the Q2 2025 (May) milestone Mar 4, 2025
@kirchoni kirchoni self-assigned this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature of an existing functionality or an improvement of an existing functionality pkg:Grid Question
Projects
None yet
Development

No branches or pull requests

1 participant