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

    Interface that allows for references to be copied.

    interface ReferenceItem<T = any> {
        isClipboardItem: true;
        editMode?(): EditMode;
        getItem?(): T;
        getItemType(): string;
        isCut?(): boolean;
        toHtml?(): string | Promise<string>;
        toImage?(): Blob | Promise<Blob>;
        toText?(): string | Promise<string>;
    }

    Type Parameters

    • T = any
    Index
    isClipboardItem: true

    For runtime introspection.

    • When adding an item to the clipboard an EditMode can be associated.

      Returns EditMode

    • Access to the underling reference.

      Returns T

    • A key that indicates the type of item returned from getItem.

      Returns string

      This should be unique key for the application.

    • Indicates if the operation is a cut.

      Returns boolean

      false
      
    • Allow items to be copied as html.

      Returns string | Promise<string>

    • Allow items to be copied as an image Blob.

      Returns Blob | Promise<Blob>

    • Allow items to be copied as text.

      Returns string | Promise<string>