Interface: useClipboardReturnType
Properties​
clearClipboard​
• clearClipboard: () => void
Type declaration​
â–¸ (): void
Clears the user clipboard.
Returns​
void
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:63
clipboard​
• clipboard: string
Current selected clipboard content.
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:58
copy​
• copy: (text?
: string
) => void
Type declaration​
â–¸ (text?
): void
Use it to perform the copy operation
Parameters​
Name | Type |
---|---|
text? | string |
Returns​
void
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:43
cut​
• cut: () => void
Type declaration​
â–¸ (): void
Use it to perform the cut operation
Returns​
void
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:48
isCoppied​
• isCoppied: boolean
Indicates wheater the content was successfully copied or not.
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:53
isSupported​
• isSupported: () => boolean
Type declaration​
â–¸ (): boolean
Check to see if the browser supports the new navigator.clipboard
API.
Returns​
boolean
Defined in​
packages/firecms/src/hooks/useClipboard.tsx:68
ref​
• ref: MutableRefObject
<any
>
Use ref to pull the text content from.