@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Interface: ISheetClipboardService
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Parameters
Parameter | Type |
---|---|
hook | ISheetClipboardHook |
Returns
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
Parameter | Type |
---|---|
workbookId | string |
worksheetId | string |
range | IRange |
Returns
Nullable
<ICopyContent
>
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:102
getClipboardHooks()
getClipboardHooks(): ISheetClipboardHook[]
Returns
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:105
legacyPaste()
legacyPaste(html?, text?): Promise<boolean>
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
item | ClipboardItem |
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