API Reference
@univerjs
@univerjs/sheets-ui
interfaces
Isheetclipboardservice

@univerjs/sheets-ui v0.4.2Docs


Interface: ISheetClipboardService

Methods

addClipboardHook()

addClipboardHook(hook): IDisposable

Parameters

ParameterType
hookISheetClipboardHook

Returns

IDisposable

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:104 (opens in a new tab)


copy()

copy(): Promise<boolean>

Returns

Promise<boolean>

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:97 (opens in a new tab)


copyContentCache()

copyContentCache(): CopyContentCache

Returns

CopyContentCache

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:103 (opens in a new tab)


cut()

cut(): Promise<boolean>

Returns

Promise<boolean>

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:98 (opens in a new tab)


generateCopyContent()

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

Parameters

ParameterType
workbookIdstring
worksheetIdstring
rangeIRange

Returns

Nullable<ICopyContent>

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:102 (opens in a new tab)


getClipboardHooks()

getClipboardHooks(): ISheetClipboardHook[]

Returns

ISheetClipboardHook[]

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:105 (opens in a new tab)


legacyPaste()

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

Parameters

ParameterType
html?string
text?string

Returns

Promise<boolean>

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:100 (opens in a new tab)


paste()

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

Parameters

ParameterType
itemClipboardItem
pasteType?string

Returns

Promise<boolean>

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:99 (opens in a new tab)


removeMarkSelection()

removeMarkSelection(): void

Returns

void

Defined in

packages/sheets-ui/src/services/clipboard/clipboard.service.ts:107 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.