@andreasnicolaou/ngx-copy-to-clipboard
Version:
A lightweight, standalone Angular directive for copying text to the clipboard using the Clipboard API.
13 lines (12 loc) • 830 B
TypeScript
import { EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
export declare class NgxCopyToClipboardDirective {
textToCopy: string | null;
successMessage: string;
errorMessage: string;
readonly onCopyEvent: EventEmitter<string>;
readonly onErrorEvent: EventEmitter<string>;
onClick(): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxCopyToClipboardDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxCopyToClipboardDirective, "[ngxCopyToClipboard]", never, { "textToCopy": { "alias": "textToCopy"; "required": false; }; "successMessage": { "alias": "successMessage"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; }, { "onCopyEvent": "onCopyEvent"; "onErrorEvent": "onErrorEvent"; }, never, never, true, never>;
}