diff --git a/types/tabulator-tables/index.d.ts b/types/tabulator-tables/index.d.ts index 8b3e8f2ce4..1eb5ccad0c 100644 --- a/types/tabulator-tables/index.d.ts +++ b/types/tabulator-tables/index.d.ts @@ -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; diff --git a/types/tabulator-tables/tabulator-tables-tests.ts b/types/tabulator-tables/tabulator-tables-tests.ts index 6d105bc8de..64b41d2d32 100644 --- a/types/tabulator-tables/tabulator-tables-tests.ts +++ b/types/tabulator-tables/tabulator-tables-tests.ts @@ -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([