mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[@types/tabulator-tables] copyToClipboard's 'type' parameter should be optional and accept all copy selectors (#38032)
This commit is contained in:
parent
0865292a1a
commit
c173f1f194
2
types/tabulator-tables/index.d.ts
vendored
2
types/tabulator-tables/index.d.ts
vendored
@ -1604,7 +1604,7 @@ declare class Tabulator {
|
||||
The first argument is the copy selector, you can choose from any of the built in options or pass a function in to the argument, that must return the selected row components.
|
||||
|
||||
If you leave this argument undefined, Tabulator will use the value of the clipboardCopySelector property, which has a default value of table */
|
||||
copyToClipboard: (type: 'selection' | 'table') => void;
|
||||
copyToClipboard: (type?: 'selected' | 'table' | 'active') => void;
|
||||
|
||||
/** With history enabled you can use the undo function to automatically undo a user action, the more times you call the function, the further up the history log you go. */
|
||||
undo: () => boolean;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
// constructor
|
||||
let table = new Tabulator('#test');
|
||||
table.copyToClipboard('selection');
|
||||
table.copyToClipboard('selected');
|
||||
table.searchRows('name', '<', 3);
|
||||
table.setFilter('name', '<=', 3);
|
||||
table.setFilter([
|
||||
|
||||
Loading…
Reference in New Issue
Block a user