Interface DynamicClipboardItem

Interface that allows for references to be copied

interface DynamicClipboardItem {
    isCut?: (() => boolean);
    onCancel?: (() => void);
    onCopy?: (() => boolean);
    onPaste?: (() => boolean);
    toHtml?: (() => string);
    toText?: (() => string);
    type: string;
}

Hierarchy (view full)

Properties

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.