the table
complete options
true: keys and clipboard events (the option is on); false: only the API
Readonly optionscomplete options
Ctrl/⌘+C, X or V (from the shortcut mapping): focuses the hidden text field so that the browser fires its
clipboard event there. The key must not be consumed (preventDefault) – the caller returns false.
the key
true if the event will be handled; false: not here (the editor is open, header focus, an own
CopyServiceIf for copying)
Removes the mark of cut cells (Escape, another change, TableApi.cancelCut); the clipboard keeps the text.
The selected cells as tab-separated text, as Ctrl/⌘+C copies them (see TableApi.getSelectionAsText).
the text; "" without cells or with more than CopyService.maxCopyCells
Pastes text (see TableApi.pasteText): parsed like the clipboard, from target or the selection.
tab-separated text
Optional html: stringtext/html (used only without text)
Optional target: [number, number]display row and model column of the first cell (no tiling)
the written (batch edit: newly pending) cells
Copy, cut or paste without a key (an ActionId from TableApi.triggerAction, e.g. a context menu): the
asynchronous clipboard API – the browser may ask for permission.
what to do
resolves when done (a refused permission is ignored)
Copies (or cuts) the selected cells with the asynchronous clipboard API (text/plain and text/html with
ClipboardItem, otherwise writeText) – for buttons and menus (see TableApi.copySelection).
true: mark the cells, they move on the next paste
resolves when the clipboard was written
Copy, cut and paste like Excel (TableOptionsIf.clipboard): the
copy,cutandpasteevents of the browser (synchronous, no permission prompt). The keys (Ctrl/⌘+C, X, V) focus a hidden text field for the moment of the key press, so that every browser – also Safari, which sends no clipboard events to a focuseddiv– fires the event; the focus returns to the table right after it. The Edit menu of the browser works on the focused table, too. Created by TableScope: with the option (tableScope.clipboardService, keys and events), otherwise on demand for the API (TableApi.pasteText, TableApi.getSelectionAsText).Since
1.1.99