mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added missing on.sortChanged handler (generic)
This commit is contained in:
15
ui-grid/ui-grid.d.ts
vendored
15
ui-grid/ui-grid.d.ts
vendored
@@ -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