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