Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockCopyComponent

Hierarchy

Index

Constructors

constructor

Properties

buttonLabel

buttonLabel: string = "Copy"

Copy button text

copiedToClipboard

copiedToClipboard: EventEmitter<CopiedMsg> = new EventEmitter()

Event emitted with the chart reference after load is complete

type

{EventEmitter}

copyBtnAriaLabel

copyBtnAriaLabel: string

Copy button aria label (announced to screen readers)

type

{string}

Protected copyService

copyService: CopyService

copyValue

copyValue: string = "Missing 'copyValue' @Input property"

The text node to be copied to the users clipboard

type

{string}

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

tooltip

tooltip: string

Tooltip text for the copyValue

type

{string}

tooltipPlacement

tooltipPlacement: string = "top"

Placement for the tooltip that further describes the copyValue

type

{string}

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(accessibleName: string): void

togglePanel

  • togglePanel(): void

Generated using TypeDoc