Skip to content

Overview

This Clipboard provides functionality for handling clipboard events in a web application.

Properties

PropertyAttributeDescriptionTypeDefault
readonlyreadonlyIf readonly mode - disabled Paste eventbooleanundefined

Events

EventDescriptionType
afterpasteapplyPaste 4. Fired after paste applied to the grid defaultPrevented - if true, paste will be canceledCustomEvent<{ raw: string; parsed: string[][]; event: ClipboardEvent; }>
beforecopyCopy 1. Fired before copy triggered defaultPrevented - if true, copy will be canceledCustomEvent<{ event: ClipboardEvent; }>
beforecopyapplyCopy Method 1. Fired before copy applied to the clipboard from outside. defaultPrevented - if true, copy will be canceledCustomEvent<{ event: DataTransfer; data?: string[][] | undefined; }>
beforecutCut 1. Fired before cut triggered defaultPrevented - if true, cut will be canceledCustomEvent<{ event: ClipboardEvent; }>
beforepastePaste 1. Fired before paste applied to the grid defaultPrevented - if true, paste will be canceledCustomEvent<{ raw: string; isHTML: boolean; event: ClipboardEvent; dataText: string; }>
beforepasteapplyPaste 2. Fired before paste applied to the grid and after data parsedCustomEvent<{ raw: string; parsed: string[][]; event: ClipboardEvent; }>
clearregionCut 2. Clears region when cut is doneCustomEvent<DataTransfer>
copyregionCopy 2. Fired when region copied defaultPrevented - if true, copy will be canceledCustomEvent<DataTransfer>
pasteregionPaste 3. Internal method. When data region is ready pass it to the top.CustomEvent<string[][]>

Methods

doCopy(e: DataTransfer, data?: DataFormat[][]) => Promise<void>

Parameters

NameTypeDescription
eDataTransfer
dataany[][] | undefined

Returns

Type: Promise<void>

Dependencies

Used by

Graph


Built with ❤️ by Revolist OU

Revogrid is an open source project by Revolist OU.
Join, contribute, grow with us—everyone is welcome.