Optional
options: InternalClipboard.ConstructorOptionsEvents types supported: copy, cut, paste, nativeSyncWarning, and (clipboardchange as a polyfill)
A known string type.
A Callback.
Optional
options: boolean | AddEventListenerOptionsListener options.
Simple method for clearing the clipboard.
Optional
native: booleanBy default this will only clear the reference. Set to true
to clear the native clipboard items if available.
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Allows for an item to be added to the clipboard that is not a Blob.
Removes the event listener in target's event listener list with the same type, callback, and options.
Optional
options: boolean | EventListenerOptionsAllows for an item to be added to the clipboard that is not a serializable blob.
The Internal clipboard is a replacement for the native clipboard api. This should be used for several reasons:
Guarantees that the intra-application clipboard actions will work even if system clipboard is unavailable.
Polyfill for onclipboardchange event.
Implements ReferenceableClipboard. These are items that add a paste callback to the clipboard to allow for items to only be copied when the paste operation is performed.
InternalClipboard will attempt to sync with the native clipboard unless sync is false.
Remarks