SheetXL - v0.3.20
    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

    Implemented by

    Index

    Properties

    isClipboardItem: true

    For runtime introspection.

    Methods

    • 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>