fc-copy
An element to copy to clipboard text
Usage
<script>
import '@forter/copy';
</script>
<fc-copy>
<fc-button icon="copy"></fc-button>
</fc-copy>
Examples
<!-- copyText -->
<fc-copy>
Copy Text
</fc-copy>
<!-- IE -->
<fc-copy ie>
<fc-button icon="copy"></fc-button>
</fc-copy>
Properties
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
clipboard |
clipboard |
string |
"Copied text" | The text to copy. example: my copied text
|
Events
Event | Description |
---|---|
copy |
event with the text that was copied, example: {"clipboard": "Copied it"} , method: copy
|
Slots
Name | Description |
---|---|
example: <fc-button icon="copy"></fc-button>
|