CopyButton
Panoramax.components.ui.CopyButton β lit.LitElement
Kind: static class of Panoramax.components.ui
Extends: lit.LitElement
Element: pnx-copy-button
Slot: oncopy The content to display after user click
- .CopyButton β
lit.LitElement- new CopyButton()
- .properties :
Object
new CopyButton()
Copy Button element allows top copy in clipboard some text.
Example
<pnx-copy-button text="content to copy" ._t=${viewer._t}>
Copy me !
<img src="success.jpg" slot="oncopy" />
</pnx-copy-button>
copyButton.properties : Object
Component properties.
Kind: instance property of CopyButton
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| [text] | string |
Text to copy in clipboard on click (use either this parameter or input, not both) | |
| [input] | input |
ID of a HTML input field to copy content from in clipboard (use either this parameter or text, not both) | |
| [kind] | string |
"full" |
The style variation of the button (full, fullwarn, fullsuccess, outline, flat, superflat, inline, superinline) |
| [size] | string |
"md" |
The size of the button (sm, md, l, xl, xxl) |
| [unstyled] | boolean |
false |
Disable all styling (for list group integration) |
| [title] | string |
Tooltip text displayed when hovering over the button |