Copies text to the clipboard.
string
, message: string
)string
- Text to copystring
- Snackbar message to alert when copying happensHTMLInputElement
|
HTMLTextAreaElement
, message?: string
)HTMLInputElement
|
HTMLTextAreaElement
- HTML element to be copiedstring
- (Optional) Snackbar message to alert when copying happensHTMLInputElement
|
HTMLTextAreaElement
): boolean
HTMLInputElement
|
HTMLTextAreaElement
- Target HTML elementboolean
- True if the text can be copied, false otherwiseUse copyContentToClipboard
to copy a text string or isTargetValid
and
copyToClipboard
to copy the content of an HTML element in the page. The
message
parameter specifies a snackbar message to alert the user when the
copying operation takes place.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.