jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
20 lines (19 loc) • 598 B
TypeScript
/**
* Copy text to the system clipboard.
*
* #### Notes
* This can only be called in response to a user input event.
*/
export declare function copyToClipboard(text: string): void;
/**
* Generate a clipboard event on a node.
*
* @param node - The element on which to generate the event.
*
* @param type - The type of event to generate: `'copy'` or `'cut'`.
* `'paste'` events cannot be programmatically generated.
*
* #### Notes
* This can only be called in response to a user input event.
*/
export declare function generateClipboardEvent(node: HTMLElement, type?: string): void;