PasteHandler
Since v0.4.2
Custom paste handler function.
type PasteHandler = (detail: PasteDetail, grid: GridElement) => boolean | voidExample
Section titled “Example”// Custom handler that validates before pastingnew ClipboardPlugin({ pasteHandler: (detail, grid) => { if (!detail.target) return false; // Apply custom validation/transformation... applyPasteData(detail, grid); return false; // We handled it, skip default }})