Skip to content

PasteHandler

Custom paste handler function.

type PasteHandler = (detail: PasteDetail, grid: GridElement) => boolean | void
// Custom handler that validates before pasting
new ClipboardPlugin({
pasteHandler: (detail, grid) => {
if (!detail.target) return false;
// Apply custom validation/transformation...
applyPasteData(detail, grid);
return false; // We handled it, skip default
}
})
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt