mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Fixes from documentation tabulator-tables 4.6.1 (#43978)
* Fixes from documentation tabulator-tables 4.6.1 * update virtualDomBuffer * don't include patch version
This commit is contained in:
15
types/tabulator-tables/index.d.ts
vendored
15
types/tabulator-tables/index.d.ts
vendored
@@ -677,7 +677,7 @@ declare namespace Tabulator {
|
||||
virtualDom?: boolean;
|
||||
|
||||
/** Manually set the size of the virtual DOM buffer */
|
||||
virtualDomBuffer?: boolean;
|
||||
virtualDomBuffer?: boolean | number;
|
||||
/** placeholder element to display on empty table */
|
||||
placeholder?: string | HTMLElement;
|
||||
|
||||
@@ -750,11 +750,6 @@ declare namespace Tabulator {
|
||||
/** Setting the invalidOptionWarnings option to false will disable console warning messages for invalid properties in the table constructor and column definition object */
|
||||
invalidOptionWarnings?: boolean;
|
||||
|
||||
/** Prevent actions from riggering an update of the Virtual DOM: */
|
||||
blockRedraw?: () => void;
|
||||
/** This will restore automatic table redrawing and trigger an appropriate redraw if one was needed as a result of any actions that happened while the redraw was blocked. */
|
||||
restoreRedraw?: () => void;
|
||||
|
||||
/** Callback is triggered when the table is vertically scrolled. */
|
||||
scrollVertical?: (top: any) => void;
|
||||
|
||||
@@ -1947,8 +1942,14 @@ declare class Tabulator {
|
||||
|
||||
The redraw function also has an optional boolean argument that when set to true triggers a full rerender of the table including all data on all rows.*/
|
||||
redraw: (force?: boolean) => void;
|
||||
|
||||
/** Prevent actions from riggering an update of the Virtual DOM: */
|
||||
blockRedraw: () => void;
|
||||
/** This will restore automatic table redrawing and trigger an appropriate redraw if one was needed as a result of any actions that happened while the redraw was blocked. */
|
||||
restoreRedraw: () => void;
|
||||
|
||||
/** If you want to manually change the height of the table at any time, you can use the setHeight function, which will also redraw the virtual DOM if necessary. */
|
||||
setHeight: (height: number) => void;
|
||||
setHeight: (height: number | string) => void;
|
||||
/** You can trigger sorting using the setSort function */
|
||||
setSort: (sortList: string | Tabulator.Sorter[], dir?: Tabulator.SortDirection) => void;
|
||||
getSorters: () => void;
|
||||
|
||||
@@ -584,10 +584,9 @@ table = new Tabulator('#example-table', {
|
||||
},
|
||||
});
|
||||
|
||||
table = new Tabulator('#test', {
|
||||
blockRedraw: () => {},
|
||||
restoreRedraw: () => {},
|
||||
});
|
||||
table = new Tabulator('#test', {});
|
||||
table.blockRedraw();
|
||||
table.restoreRedraw();
|
||||
|
||||
table = Tabulator.prototype.findTable('#example-table');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user