mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update SlickGrid.d.ts
Added the overload for setData.
This commit is contained in:
1 parent
7dae79ea1b
commit
e7c3b12277
1 file changed
+8
-1
Vendored
+8
-1
@@ -779,11 +779,18 @@ declare module Slick {
|
||||
|
||||
/**
|
||||
* Sets a new source for databinding and removes all rendered rows. Note that this doesn't render the new rows - you can follow it with a call to render() to do that.
|
||||
* @param newData New databinding source. This can either be a regular JavaScript array or a custom object exposing getItem(index) and getLength() functions.
|
||||
* @param newData New databinding source using a regular JavaScript array..
|
||||
* @param scrollToTop If true, the grid will reset the vertical scroll position to the top of the grid.
|
||||
**/
|
||||
public setData(newData: T[], scrollToTop: boolean): void;
|
||||
|
||||
/**
|
||||
* Sets a new source for databinding and removes all rendered rows. Note that this doesn't render the new rows - you can follow it with a call to render() to do that.
|
||||
* @param newData New databinding source using a custom object exposing getItem(index) and getLength() functions.
|
||||
* @param scrollToTop If true, the grid will reset the vertical scroll position to the top of the grid.
|
||||
**/
|
||||
public setData(newData: { getItem: (index: number) => T; getLength: () => number; }, scrollToTop: boolean): void;
|
||||
|
||||
/**
|
||||
* Returns the size of the databinding source.
|
||||
* @return
|
||||
|
||||
Reference in new issue
Block a user