Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockCopyComponent

Block Copy component

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

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

Hierarchy

Index

Constructors

constructor

Properties

copyBtnAriaLabel

copyBtnAriaLabel: string

Copy button aria label (announced to screen readers)

copyBtnLabel

copyBtnLabel: string = "Copy"

Copy button text

Protected copyService

copyService: CopyService

copyValue

copyValue: string

The text node to be copied to the users clipboard

expandBtnAriaLabel

expandBtnAriaLabel: string

Expand/toggle button aria label (announced to screen readers)

expanded

expanded: boolean = false

Controls the expanded state of block copy

label

label: string

Label naming the block copy component

onCopyToClipboard

onCopyToClipboard: EventEmitter<CopyEvent> = new EventEmitter()

Event emitted with the chart reference after load is complete

tooltip

tooltip: string

Tooltip text for the copyValue

tooltipPlacement

tooltipPlacement: string = "top"

Placement for the tooltip that further describes the copyValue

uniqueID

uniqueID: string = uniqueId('pfng-block-copy')

Generates a unique value for an id

Accessors

copyBtnId

  • get copyBtnId(): string

recentlyCopied

  • get recentlyCopied(): boolean

Methods

copyToClipboard

  • copyToClipboard(): void

Protected copyValueToClipboard

  • copyValueToClipboard(): void

togglePanel

  • togglePanel(): void

Generated using TypeDoc