Options
All
  • Public
  • Public/Protected
  • All
Menu

Module app/_helpers/clipboard-copy

Index

Functions

Functions

copyToClipboard

  • copyToClipboard(text: any): boolean
  • Copies set text to clipboard.

    example

    copies 'Hello World!' to the clipboard and prints "true":

    console.log(copyToClipboard('Hello World!'));
    

    Parameters

    • text: any

      The text to be copied to the clipboard.

    Returns boolean

    true - If the copy operation is successful.

Generated using TypeDoc