Skip to content

CopyButton

Panoramax.components.ui.CopyButton ⇐ lit.LitElement

Kind: static class of Panoramax.components.ui
Extends: lit.LitElement
Element: pnx-copy-button

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 !
</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, 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)