You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is not option to reset the sorting in a Data Table other than clicking until you get to the initial state of the table on the corresponding header. Use cases where this option would be useful:
There is an alternative way to order items - E.g a developer has added the ability to reorder the rows in a data table by togling drag and drop. When clicking the toggle it would be useful if the sorting could reset by a method attached to the toggle. Currently if the table is sorted by one of the headers, reordering the items with a custom function does not work.
-There is a fitler for the table. The user has disabled columns and has filtered the table based on one of the headers. The user clicks on a "reset defaults" button which removes the filtering but cannot reset the sorting at this moment.
The solution
Adding an optional hook to reset the sorting of a DataTable component.
Examples
A property similar to the one needed here is available in the Attlasian design system. The defaultSortOrder prop can be a good starting point.
Application/PAL
No response
Business priority
Low Priority = release date is not dependent on fix or not upcoming
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.
If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.
The problem
Currently there is not option to reset the sorting in a Data Table other than clicking until you get to the initial state of the table on the corresponding header. Use cases where this option would be useful:
-There is a fitler for the table. The user has disabled columns and has filtered the table based on one of the headers. The user clicks on a "reset defaults" button which removes the filtering but cannot reset the sorting at this moment.
The solution
Adding an optional hook to reset the sorting of a DataTable component.
Examples
A property similar to the one needed here is available in the Attlasian design system. The defaultSortOrder prop can be a good starting point.
Application/PAL
No response
Business priority
Low Priority = release date is not dependent on fix or not upcoming
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: