[@types/tabulator-tables] copyToClipboard's 'type' parameter should be optional and accept all copy selectors (#38032)

This commit is contained in:
mstlaurent-paradigm 2019-09-03 17:11:53 -04:00 committed by Ron Buckton
parent 0865292a1a
commit c173f1f194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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([