mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* [ADF-4272] DocumentList - add Copy content tooltip directive * [ADF-4272] - fix build issue * [ADF-4272] - change directive name and add requested changes * [ADF-4272] - reset task-list-cloud html content * [ADF-4272] - fix build * [AFG-4272] - change name to CopyClipboard * [ADF-4272] - PR changes * [ADF-4272] - fix tests * [ADF-4272[] - lint * [ADF-4272] - merge clipboard directive with copy-content directive * [ADF-4272] - PR changes * [ADF-4272] - change docs
37 lines
970 B
Markdown
37 lines
970 B
Markdown
---
|
|
Title: Copy Clipboard directive
|
|
Added: v3.2.0
|
|
Status: Active
|
|
Last reviewed: 2019-04-01
|
|
---
|
|
|
|
# [Clipboard directive](../../../lib/core/clipboard/clipboard.directive.ts "Defined in clipboard.directive.ts")
|
|
|
|
Copy text to clipboard
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<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>
|
|
```
|
|
|
|
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| target | `HTMLElement ref` | false | HTMLElement reference |
|
|
| clipboard-notification | `string` | | Translation key message for toast notification |
|
|
|
|
## Details
|
|
|
|
When the user hover the directive element a tooltip will will show up to inform that, when you click on the current element, the content or the reference content will be copied into the clipboard.
|