Skip to content
@ng-doc/app / Class

NgDocCopyButtonComponent

An icon button that copies a text to the clipboard and confirms it in a tooltip. Project the icon into it.

Decorators
@Component
Selectors
ng-doc-copy-button
DeclarationTypeScript
@Component({ … })
export class NgDocCopyButtonComponent { … }

Members

Properties

5
clipboard: Clipboard
protectedreadonly
—
label: InputSignal<string>
readonly input()

Accessible name of the button, also shown in its tooltip.

readonly input()required

The text to copy, or a function that returns it when the button is pressed.

readonly

The tooltip of the button.

tooltipText: WritableSignal<string>
protectedreadonly
—

Methods

1
(): void

Copies the text and shows the confirmation.

Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-copy-button
Scope
@ng-doc/app
Edit this page