Merge pull request #2489 from styfle/patch-6

Fix interface for getIdxById in SlickGrid
This commit is contained in:
Basarat Ali Syed
2014-07-10 10:55:56 +10:00
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -196,3 +196,7 @@ grid.setCellCssStyles("test", {
}
});
// Begin DataView tests
var dataView = new Slick.Data.DataView<MyData>();
var gridWithDataView = new Slick.Grid<MyData>('#grid2', dataView, columns, options);
dataView.getIdxById('foo') + 5;
+1 -1
View File
@@ -1539,7 +1539,7 @@ declare module Slick {
*/
public expandGroup(...varArgs: string[]): void;
public getGroups(): Group<T, any>[];
public getIdxById(): string;
public getIdxById(id: string): number;
public getRowById(): T;
public getItemById(id: any): T;
public getItemByIdx(): T;