CopyToClipboard API#
Bases: AnyWidget
Button widget that copies the provided text_to_copy payload.
Examples:
Create a CopyToClipboard button.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text_to_copy
|
str
|
Initial string placed on the clipboard when clicked. |
''
|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in wigglystuff/copy_to_clipboard.py
Synced traitlets#
| Traitlet | Type | Notes |
|---|---|---|
text_to_copy |
str |
Payload copied when the button is pressed. |