mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
GridInstance.scrollTo takes an object in the data array as parameter, not
a GridRow. Also, both parameters are optional. See https://github.com/angular-ui/ui-grid/blob/a42dab24532fb896725b9fc8359e4526e436c891/src/js/core/factories/Grid.js#L2419-L2440
This commit is contained in:
@@ -100,5 +100,11 @@ gridApi.core.queueGridRefresh()
|
||||
gridApi.core.queueRefresh();
|
||||
gridApi.core.registerColumnsProcessor(colProcessor, 100);
|
||||
|
||||
var rowEntityToScrollTo = {anObject: "inGridOptionsData"};
|
||||
var columnDefToScrollTo: uiGrid.IColumnDef;
|
||||
gridInstance.scrollTo();
|
||||
gridInstance.scrollTo(rowEntityToScrollTo);
|
||||
gridInstance.scrollTo(rowEntityToScrollTo, columnDefToScrollTo);
|
||||
|
||||
var selectedRowEntities: Array<any> = gridApi.selection.getSelectedRows();
|
||||
var selectedGridRows: Array<uiGrid.IGridRow> = gridApi.selection.getSelectedGridRows();
|
||||
|
||||
Vendored
+1
-1
@@ -445,7 +445,7 @@ declare module uiGrid {
|
||||
* @param {IColumnDef} colDef to make visible
|
||||
* @returns {ng.IPromise<any>} a promise that is resolved after any scrolling is finished
|
||||
*/
|
||||
scrollTo(rowEntity: IGridRow, colDef: IColumnDef): ng.IPromise<any>;
|
||||
scrollTo(rowEntity?: any, colDef?: IColumnDef): ng.IPromise<any>;
|
||||
/**
|
||||
* Scrolls the grid to make a certain row and column combo visible,
|
||||
* in the case that it is not completely visible on the screen already.
|
||||
|
||||
Reference in New Issue
Block a user