SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    A clipboard target is an interface will read items from the clipboard.

    interface Target<T = any, E extends HTMLElement = HTMLElement> {
        doPaste?: (
            item: ReferenceItem<T>,
            options: PasteOptions,
        ) => boolean | Promise<boolean>;
        element: () => E;
        importFromExternal?: (
            items: NativeItems,
            options?: ReferenceableClipboard.CopyOptions,
        ) => ReferenceItem<T> | Promise<ReferenceItem<T>> | null;
    }

    Type Parameters

    • T = any
    • E extends HTMLElement = HTMLElement
    Index
    doPaste?: (
        item: ReferenceItem<T>,
        options: PasteOptions,
    ) => boolean | Promise<boolean>

    If this is not specified then native paste will still be attempted.

    element: () => E

    A method that allows or focus to be called. (and supports an addEventListener('focus'))

    importFromExternal?: (
        items: NativeItems,
        options?: ReferenceableClipboard.CopyOptions,
    ) => ReferenceItem<T> | Promise<ReferenceItem<T>> | null

    Creates a ReferenceableClipboardItem from native clipboard items (text, html, or images). This is used to import external clipboard data into an 'internal clipboard' representation.

    Type Declaration

    Error If an error occurs during the creation of the ReferenceableClipboardItem. The error will be caught and displayed to the user.