UNPKG

794 BTypeScriptView Raw
1import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2import { IClipboardResponse } from './interface';
3import { ClipboardService } from './ngx-clipboard.service';
4export declare class ClipboardDirective implements OnInit, OnDestroy {
5 private clipboardSrv;
6 targetElm: HTMLInputElement | HTMLTextAreaElement | undefined | '';
7 container: HTMLElement;
8 cbContent: string | undefined;
9 cbSuccessMsg: string;
10 cbOnSuccess: EventEmitter<IClipboardResponse>;
11 cbOnError: EventEmitter<any>;
12 constructor(clipboardSrv: ClipboardService);
13 ngOnInit(): void;
14 ngOnDestroy(): void;
15 onClick(event: Event): void;
16 /**
17 * Fires an event based on the copy operation result.
18 * @param succeeded
19 */
20 private handleResult;
21}