Interface SheetCopyPasteProps

interface SheetCopyPasteProps {
    copyBackgroundColor?: string;
    copyForegroundColor?: string;
    cutBackgroundColor?: string;
    cutForegroundColor?: string;
    element: (() => HTMLElement);
    notifier?: Notifier;
    onClipboardUpdate?: ((item) => void);
    onNativeCopy?: ((e, args) => CopyClipboardArgument);
    onNativePaste?: ((e, args) => any);
    onPaste?: ((item, args) => void | EditMode<any>);
    ranges: CellRangeCoords[];
    selectionRenderer?: ((props) => ReactNode);
    sheetModel: ISheetModel;
}

Hierarchy

Properties

copyBackgroundColor?: string

Color for the background

copyForegroundColor?: string

Color for the foreground

cutBackgroundColor?: string
cutForegroundColor?: string
element: (() => HTMLElement)

Sheet element

Type declaration

    • (): HTMLElement
    • Returns HTMLElement

notifier?: Notifier
onClipboardUpdate?: ((item) => void)

Type declaration

onNativeCopy?: ((e, args) => CopyClipboardArgument)

Returns optional args

Type declaration

onNativePaste?: ((e, args) => any)

Returns optional args or boolean. If null is returned the no additional process will occur. To prevent native paste the call e.preventDefault().

Type declaration

onPaste?: ((item, args) => void | EditMode<any>)

Called after paste has been called. If an editMode is returned then this will be set as the current edit mode.

Type declaration

Remarks

by default the EditMode will be cleared

ranges: CellRangeCoords[]
selectionRenderer?: ((props) => ReactNode)

Allow users to customize selected cells design

Type declaration

sheetModel: ISheetModel