Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockCopyComponent

Block Copy component

Usage:

// Individual module import
import { BlockCopyModule } from 'patternfly-ng/copy';
// Or
import { BlockCopyModule } from 'patternfly-ng';

@NgModule({ imports: [BlockCopyModule,...] }) export class AppModule(){}

Optional:

import { CopyEvent } from 'patternfly-ng/copy';

Hierarchy

Index

Constructors

constructor

Properties

buttonAriaLabel

buttonAriaLabel: string

Copy button aria label (announced to screen readers)

buttonLabel

buttonLabel: string

Copy button label

expandToggleAriaLabel

expandToggleAriaLabel: string

Aria label for the expansion toggle

expanded

expanded: boolean = false

Flag indicating the expanded state for the expansion panel

label

label: string

Label output above the block copy component

onCopy

onCopy: EventEmitter<Object> = new EventEmitter()

Event emitted when values are copied to the clipboard

tooltip

tooltip: string

A tooltip that describes the value to be copied

tooltipPlacement

tooltipPlacement: string = "top"

Placement for the tooltip

value

value: string

The value to be copied to the clipboard

Accessors

buttonId

  • get buttonId(): string

recentlyCopied

  • get recentlyCopied(): boolean

Methods

copy

  • copy(): void

togglePanel

  • togglePanel(): void

Generated using TypeDoc