interface CopyPasteProps {
    notifier?: Notifier;
    onClipboardUpdate?: ((item) => void);
    onNativeCopy?: ((e, args) => CopyClipboardArgument);
    onNativePaste?: ((e, args) => any);
    onPaste?: ((item, args) => void | EditMode<any>);
    source: ClipboardSource;
    target?: ClipboardTarget;
}

Properties

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