mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
🤖 Merge PR #46229 [tabulator-tables] findTable returns Tabulator[] instead of single Ta… by @simusr2
* [tabulator-tables] findTable returns Tabulator[] instead of single Tabulator object In Tabulator 4.7 findTable returns Tabulator[] instead of single Tabulator object. 'The findTable function will return an array of matching tables.' Ref: http://tabulator.info/docs/4.7/options#find-table * [tabulator-tables] Updated findTable test
This commit is contained in:
parent
f6295bd21d
commit
da25cdaf3a
4
types/tabulator-tables/index.d.ts
vendored
4
types/tabulator-tables/index.d.ts
vendored
@ -2212,8 +2212,8 @@ declare class Tabulator {
|
||||
The function takes three arguments, the name of the module, the name of the property you want to extend, and an object containing the elements you want to add in your module. In the example below we extend the format module to add two new default formatters: */
|
||||
extendModule: (name: string, property: string, values: {}) => void;
|
||||
|
||||
/** Lookup the table object for any existing table using the element they were created on. */
|
||||
findTable: (query: string) => Tabulator;
|
||||
/** Lookup table objects for any existing table using the element they were created on. */
|
||||
findTable: (query: string) => Tabulator[];
|
||||
|
||||
/**The getInvalidCells method returns an array of Cell Components for all cells flagged as invalid after a user edit. */
|
||||
getInvalidCells: () => Tabulator.CellComponent[];
|
||||
|
||||
@ -594,7 +594,7 @@ table = new Tabulator('#test', {});
|
||||
table.blockRedraw();
|
||||
table.restoreRedraw();
|
||||
|
||||
table = Tabulator.prototype.findTable('#example-table');
|
||||
table = Tabulator.prototype.findTable('#example-table')[0];
|
||||
|
||||
table.getRows('visible');
|
||||
table.deleteRow([15, 7, 9]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user