Copies text to the clipboard.
<span adf-clipboard="translate_key" [clipboard-notification]="notify message">
text to copy
</span>
<button adf-clipboard="translate_key" target="ref" [clipboard-notification]="notify message">
Copy
</button>
Name | Type | Default value | Description |
---|---|---|---|
message | string | Translation key or message for snackbar notification. | |
placeholder | string | Translation key or message for the tooltip. | |
target | HTMLInputElement | HTMLTextAreaElement | Reference to the HTML element containing the text to copy. |
Clicking on the decorated element will copy the text content of that element (or the
element specified in the target
property) to the clipboard.
Use the parameter to adf-clipboard
to specify a tooltip message that will be shown when
the user hovers the mouse over the element. You can also provide a snackbar message in the
clipboard-notification
property, which will appear when the copying is complete.
© 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.