useClipboardReturnType
Este conteúdo não está disponível em sua língua ainda.
@firecms/core / useClipboardReturnType
Interface: useClipboardReturnType
Section titled “Interface: useClipboardReturnType”Defined in: hooks/useClipboard.tsx:34
Properties
Section titled “Properties”clearClipboard()
Section titled “clearClipboard()”clearClipboard: () =>
void
Defined in: hooks/useClipboard.tsx:63
Clears the user clipboard.
Returns
Section titled “Returns”void
clipboard
Section titled “clipboard”clipboard:
string
Defined in: hooks/useClipboard.tsx:58
Current selected clipboard content.
copy()
Section titled “copy()”copy: (
text?) =>void
Defined in: hooks/useClipboard.tsx:43
Use it to perform the copy operation
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
cut: () =>
void
Defined in: hooks/useClipboard.tsx:48
Use it to perform the cut operation
Returns
Section titled “Returns”void
isCoppied
Section titled “isCoppied”isCoppied:
boolean
Defined in: hooks/useClipboard.tsx:53
Indicates wheater the content was successfully copied or not.
isSupported()
Section titled “isSupported()”isSupported: () =>
boolean
Defined in: hooks/useClipboard.tsx:68
Check to see if the browser supports the new navigator.clipboard API.
Returns
Section titled “Returns”boolean
ref:
MutableRefObject<any>
Defined in: hooks/useClipboard.tsx:38
Use ref to pull the text content from.