@univerjs/docs-ui v0.5.0-beta.1 • Docs
Interface: IDocClipboardService
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Parameters
Parameter | Type |
---|---|
hook | IDocClipboardHook |
Returns
Defined in
submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:60
copy()
copy(sliceType?): Promise<boolean>
Parameters
Parameter | Type |
---|---|
sliceType ? | SliceBodyType |
Returns
Promise
<boolean
>
Defined in
submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:56
cut()
cut(): Promise<boolean>
Returns
Promise
<boolean
>
Defined in
submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:57
legacyPaste()
legacyPaste(options): Promise<boolean>
Parameters
Parameter | Type |
---|---|
options | object |
options.files | File [] |
options.html ? | string |
options.text ? | string |
Returns
Promise
<boolean
>
Defined in
submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:59
paste()
paste(items): Promise<boolean>
Parameters
Parameter | Type |
---|---|
items | ClipboardItem [] |
Returns
Promise
<boolean
>
Defined in
submodules/univer/packages/docs-ui/src/services/clipboard/clipboard.service.ts:58