@exmg/exm-copy-to-clipboard v1.1.24
<exm-copy-to-clipboard> 
@exmg/exm-copy-to-clipboard
Helper element to create icon/buttons that lets the user copy content to the clipboard. Just wrap it around the button or icon and set the value that needs to be copied.
Installation
npm install @exmg/exm-copy-to-clipboardExample Usage
Standard
<exm-copy-to-clipboard value="mark@test.com">
<md-icon-button><md-icon>content-copy</md-icon></md-icon-button>
</exm-copy-to-clipboard>API
Slots
| Name | Description |
|---|---|
| default | Button to handle copy to clipboard |
Properties/Attributes
| Name | Type | Default | Description |
|---|---|---|---|
value | string | None | The value that gets copied and displayed |
Methods
| Name | Description |
|---|---|
toggle | Toggles the opened state of the component |
show | Sets the opened state of the component to true |
hide | Sets the opened state of the component to false |
Events
None
CSS Custom Properties
None
Additional references
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
10 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
6 months ago
10 months ago
7 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
6 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago