mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #6352 from MatejQ/onsortchanged
Added missing generic on.sortChanged handler
This commit is contained in:
Vendored
+15
@@ -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> {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user