-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
C: VDataTableP: elite sponsorT: enhancementFunctionality that enhances existing featuresFunctionality that enhances existing features
Description
Problem to solve
Currently, multi-sort
always appends new columns to the sort-by
array, so the last column has the lowest priority. It works fine until the table has initial sorting defined when the page loads and user would like sort by something not realizing that he/she has to undo sorting for all the sorted columns.
While the best UX requires some external sorting menu/dropdown with a drag&drop, some developers might want to keep it simple and just prioritize the sorting of the last-clicked column.
Proposed solution
multi-sort
to accept an object with following fieldsmode: 'prepend' | 'append'
- defaults to'append'
modifier: 'shift' | 'alt'
- (optional) allows holding key to flip the sorting modekey: 'ctrl' | undefined
- (optional) requires user to hold key when sorting (similar to PrimeVue and AgGrid)
Metadata
Metadata
Assignees
Labels
C: VDataTableP: elite sponsorT: enhancementFunctionality that enhances existing featuresFunctionality that enhances existing features