From a5cb0c31fee9530310a6a4349dda91674d0c64db Mon Sep 17 00:00:00 2001 From: MatejQ Date: Mon, 19 Oct 2015 13:54:05 +0200 Subject: [PATCH] Added missing on.sortChanged handler (generic) --- ui-grid/ui-grid.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ui-grid/ui-grid.d.ts b/ui-grid/ui-grid.d.ts index ef013fdf18..b4ac339346 100644 --- a/ui-grid/ui-grid.d.ts +++ b/ui-grid/ui-grid.d.ts @@ -1038,6 +1038,12 @@ declare module uiGrid { * @param {scrollEndHandler} handler callback */ scrollEnd: (scope: ng.IScope, handler: scrollEndHandler) => void; + /** + * is raised after the sort criteria on one or more columns have changed + * @param {ng.IScope} scope Grid scope + * @param {sortChangedHandler} handler callback + */ + sortChanged: (scope: ng.IScope, handler: sortChangedHandler) => void; } } export interface columnVisibilityChangedHandler { @@ -1096,6 +1102,15 @@ declare module uiGrid { (scrollEvent: JQueryMouseEventObject): void; } + export interface sortChangedHandler { + /** + * Sort change event callback + * @param {IGridInstance} grid instance + * @param {IGridColumn} array of gridColumns that have sorting on them, sorted in priority order + */ + (grid: IGridInstanceOf, columns: Array>): void; + } + export module cellNav { /** * Column Definitions for cellNav feature, these are available to be set using the ui-grid