API Reference
@univerjs
@univerjs/docs-ui
interfaces
Idocclipboardservice

@univerjs/docs-ui v0.4.2Docs


Interface: IDocClipboardService

Methods

addClipboardHook()

addClipboardHook(hook): IDisposable

Parameters

ParameterType
hookIDocClipboardHook

Returns

IDisposable

Defined in

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


copy()

copy(sliceType?): Promise<boolean>

Parameters

ParameterType
sliceType?SliceBodyType

Returns

Promise<boolean>

Defined in

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


cut()

cut(): Promise<boolean>

Returns

Promise<boolean>

Defined in

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


legacyPaste()

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

Parameters

ParameterType
html?string
text?string

Returns

Promise<boolean>

Defined in

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


paste()

paste(items): Promise<boolean>

Parameters

ParameterType
itemsClipboardItem[]

Returns

Promise<boolean>

Defined in

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


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