Interface SheetClipboardItem

Interface that allows for references to be copied

interface SheetClipboardItem {
    isCopyCellsSource: true;
    isCut?: (() => boolean);
    onCancel?: (() => void);
    onCopy?: (() => boolean);
    onPaste?: (() => boolean);
    toHtml?: (() => string);
    toText?: (() => string);
    type: string;
    getCopyableItems?(): CopyableItemSource[];
    isCellSource(): true;
    name?(): string;
    rangeFrom(): CellRangeCoords;
    scanCells(visitor, options?): void;
    scanColHeaders?(visitor, options?): void;
    scanRowHeaders?(visitor, options?): void;
}

Hierarchy (view full)

Implemented by

Properties

isCopyCellsSource: true

For runtime introspection.

isCut?: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

onCancel?: (() => void)

Called when data is no longer being used and any references can be discarded

Type declaration

    • (): void
    • Returns void

onCopy?: (() => boolean)

Called when data has been copied. This is the time to cut.

Type declaration

    • (): boolean
    • Returns boolean

onPaste?: (() => boolean)

Called when data has been written to another location

Type declaration

    • (): boolean
    • Returns boolean

toHtml?: (() => string)

Type declaration

    • (): string
    • Returns string

toText?: (() => string)

Type declaration

    • (): string
    • Returns string

type: string

Any descriptive string.

Methods

  • Returns true

  • The name of a the copy source. Useful for user interactions.

    Returns string

    Remarks

    SheetCopySource uses the sheet name to detect intersections.