Web Component: j-Clipboard


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Clipboard

  • It works as singleton

  • Uses navigator.clipboard.writeText() or document.execCommand('copy') as fallback

  • jComponent v19|v20

Methods:

  • SETTER('clipboard/copy', 'TEXT TO CLIPBOARD') or FIND('clipboard').copy('TEXT TO CLIPBOARD')

Configuration:

  • oncopy {String} a link to the function(value)

Author