Skip to content

Commit

Permalink
Add sortDirectionCycle in interface IColumnDefOf
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiughese committed Jan 7, 2016
1 parent 81b951f commit 9028ed3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui-grid/ui-grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3766,6 +3766,14 @@ declare module uiGrid {
* You may specify one of the sortingAlgorithms found in the rowSorter service.
*/
sortCellFiltered?: boolean;
/**
* (optional) An array of sort directions, specifying the order that they should cycle through as
* the user repeatedly clicks on the column heading. The default is [null, uiGridConstants.ASC, uiGridConstants.DESC].
* Null refers to the unsorted state. This does not affect the initial sort direction; use the sort property for that.
* If suppressRemoveSort is also set, the unsorted state will be skipped even if it is listed here. Each direction may
* not appear in the list more than once (e.g. [ASC, DESC, DESC] is not allowed), and the list may not be empty.*
*/
sortDirectionCycle?: Array<IUiGridConstants>;
/** Algorithm to use for sorting this column */
sortingAlgorithm?: (a: any, b: any) => number;
/**
Expand Down

0 comments on commit 9028ed3

Please sign in to comment.