@univerjssheets-uiindexinterfacesIsheetclipboardservice

@univerjs/sheets-ui v0.5.0-beta.1Docs


Interface: ISheetClipboardService

Methods

addClipboardHook()

addClipboardHook(hook): IDisposable

Parameters

ParameterType
hookISheetClipboardHook

Returns

IDisposable

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:104


copy()

copy(): Promise<boolean>

Returns

Promise<boolean>

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:97


copyContentCache()

copyContentCache(): CopyContentCache

Returns

CopyContentCache

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:103


cut()

cut(): Promise<boolean>

Returns

Promise<boolean>

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:98


generateCopyContent()

generateCopyContent(
   workbookId, 
   worksheetId, 
range): Nullable<ICopyContent>

Parameters

ParameterType
workbookIdstring
worksheetIdstring
rangeIRange

Returns

Nullable<ICopyContent>

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:102


getClipboardHooks()

getClipboardHooks(): ISheetClipboardHook[]

Returns

ISheetClipboardHook[]

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:105


legacyPaste()

legacyPaste(html?, text?): Promise<boolean>

Parameters

ParameterType
html?string
text?string

Returns

Promise<boolean>

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:100


paste()

paste(item, pasteType?): Promise<boolean>

Parameters

ParameterType
itemClipboardItem
pasteType?string

Returns

Promise<boolean>

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:99


removeMarkSelection()

removeMarkSelection(): void

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:107