Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CopyService

A generic service for copying text to clipboard

Usage:
import { CopyService } from 'patternfly-ng/copy';

Or:
import { CopyService } from 'patternfly-ng';

Hierarchy

  • CopyService

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

dom

  • get dom(): any

Methods

copy

  • copy(value: string): boolean

setVerbose

  • setVerbose(verbose: boolean): void
  • Set the verbose mode to on or off (default). During the verbose mode, each unsuccessful copy operation will be printed to the console.

    Parameters

    • verbose: boolean

      Set to true for verbose mode

    Returns void

Generated using TypeDoc