mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed row getters in selection API.
See: http://ui-grid.info/docs/#/api/ui.grid.selection.api:PublicApi getSelectedGridRows should return uiGrid.IGridRow, not the uiGrid.selection.IGridRow interface which only has the selection-specific properties. getSelectedRows returns the selected entities, not grid rows.
This commit is contained in:
@@ -100,3 +100,5 @@ gridApi.core.queueGridRefresh()
|
||||
gridApi.core.queueRefresh();
|
||||
gridApi.core.registerColumnsProcessor(colProcessor, 100);
|
||||
|
||||
var selectedRowEntities: Array<any> = gridApi.selection.getSelectedRows();
|
||||
var selectedGridRows: Array<uiGrid.IGridRow> = gridApi.selection.getSelectedGridRows();
|
||||
|
||||
Vendored
+2
-2
@@ -2823,12 +2823,12 @@ declare module uiGrid {
|
||||
* returns all selected rows as gridRows
|
||||
* @returns {Array<IGridRow>} The selected rows
|
||||
*/
|
||||
getSelectedGridRows(): Array<IGridRow>;
|
||||
getSelectedGridRows(): Array<uiGrid.IGridRow>;
|
||||
/**
|
||||
* Gets selected rows as entities
|
||||
* @returns {Array<any>} Selected row entities
|
||||
*/
|
||||
getSelectedRows(): Array<IGridRow>;
|
||||
getSelectedRows(): Array<any>;
|
||||
/**
|
||||
* Selects all rows. Does nothing if multiselect = false
|
||||
* @param {ng.IAngularEvent} event object if raised from event
|
||||
|
||||
Reference in New Issue
Block a user