Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#6352 from MatejQ/onsortchanged
Browse files Browse the repository at this point in the history
Added missing generic on.sortChanged handler
  • Loading branch information
vvakame committed Oct 21, 2015
2 parents 5660226 + a5cb0c3 commit 4a7ca12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui-grid/ui-grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TEntity>) => void;
}
}
export interface columnVisibilityChangedHandler<TEntity> {
Expand Down Expand Up @@ -1096,6 +1102,15 @@ declare module uiGrid {
(scrollEvent: JQueryMouseEventObject): void;
}

export interface sortChangedHandler<TEntity> {
/**
* Sort change event callback
* @param {IGridInstance} grid instance
* @param {IGridColumn} array of gridColumns that have sorting on them, sorted in priority order
*/
(grid: IGridInstanceOf<TEntity>, columns: Array<IGridColumnOf<TEntity>>): void;
}

export module cellNav {
/**
* Column Definitions for cellNav feature, these are available to be set using the ui-grid
Expand Down

0 comments on commit 4a7ca12

Please sign in to comment.