From 9028ed35ea3b66444911c567ebeaaed2a5e62c73 Mon Sep 17 00:00:00 2001 From: tiso Date: Thu, 7 Jan 2016 16:21:51 +0100 Subject: [PATCH 1/2] Add sortDirectionCycle in interface IColumnDefOf --- ui-grid/ui-grid.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui-grid/ui-grid.d.ts b/ui-grid/ui-grid.d.ts index 1c7eb1370..89778d573 100644 --- a/ui-grid/ui-grid.d.ts +++ b/ui-grid/ui-grid.d.ts @@ -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; /** Algorithm to use for sorting this column */ sortingAlgorithm?: (a: any, b: any) => number; /** From 868b56d377ac0e47b68d5f2b2e34af049ce18a78 Mon Sep 17 00:00:00 2001 From: tiso Date: Fri, 8 Jan 2016 10:08:21 +0100 Subject: [PATCH 2/2] Modify scpacing for sortDirectionCycle in interface IColumnDefOf --- ui-grid/ui-grid.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui-grid/ui-grid.d.ts b/ui-grid/ui-grid.d.ts index 89778d573..a480d7bb4 100644 --- a/ui-grid/ui-grid.d.ts +++ b/ui-grid/ui-grid.d.ts @@ -3767,12 +3767,12 @@ declare module uiGrid { */ 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.* - */ + *(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; /** Algorithm to use for sorting this column */ sortingAlgorithm?: (a: any, b: any) => number;