9.0.4 • Published 3 months ago
@exmg/exmg-copy-to-clipboard v9.0.4
<exmg-copy-to-clipboard>
@exmg/exmg-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/exmg-copy-to-clipboard
Example Usage
Standard
<exmg-copy-to-clipboard value="mark@test.com">
<md-icon-button><md-icon>content-copy</md-icon></md-icon-button>
</exmg-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
9.0.4
3 months ago
9.0.3
3 months ago
9.0.1
3 months ago
8.1.35
8 months ago
8.1.34
10 months ago
8.1.31
12 months ago
8.1.33
11 months ago
8.1.32
12 months ago
8.1.23
2 years ago
8.1.17
2 years ago
8.0.1
3 years ago
8.0.0
3 years ago
6.1.2
3 years ago
6.1.1
4 years ago
6.1.0
5 years ago
6.0.2
5 years ago
6.0.1
5 years ago
6.0.0
5 years ago
5.0.0
5 years ago
4.1.0
5 years ago
4.0.0
5 years ago
3.0.2
6 years ago
3.0.1
6 years ago