Pular para o conteúdo

useClipboardReturnType

Este conteúdo não está disponível em sua língua ainda.

@firecms/core


@firecms/core / useClipboardReturnType

Defined in: hooks/useClipboard.tsx:34

clearClipboard: () => void

Defined in: hooks/useClipboard.tsx:63

Clears the user clipboard.

void


clipboard: string

Defined in: hooks/useClipboard.tsx:58

Current selected clipboard content.


copy: (text?) => void

Defined in: hooks/useClipboard.tsx:43

Use it to perform the copy operation

string

void


cut: () => void

Defined in: hooks/useClipboard.tsx:48

Use it to perform the cut operation

void


isCoppied: boolean

Defined in: hooks/useClipboard.tsx:53

Indicates wheater the content was successfully copied or not.


isSupported: () => boolean

Defined in: hooks/useClipboard.tsx:68

Check to see if the browser supports the new navigator.clipboard API.

boolean


ref: MutableRefObject<any>

Defined in: hooks/useClipboard.tsx:38

Use ref to pull the text content from.