UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

36 lines (35 loc) 1.31 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Clipboard } from '@angular/cdk/clipboard'; import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { NzTSType } from 'ng-zorro-antd/core/types'; import { NzI18nService, NzTextI18nInterface } from 'ng-zorro-antd/i18n'; export declare class NzTextCopyComponent implements OnInit, OnDestroy, OnChanges { private host; private cdr; private clipboard; private i18n; copied: boolean; copyId: number; locale: NzTextI18nInterface; nativeElement: any; copyTooltip: NzTSType | null; copedTooltip: NzTSType | null; copyIcon: NzTSType; copedIcon: NzTSType; private destroy$; text: string; tooltips?: [NzTSType, NzTSType] | null; icons: [NzTSType, NzTSType]; readonly textCopy: EventEmitter<string>; constructor(host: ElementRef, cdr: ChangeDetectorRef, clipboard: Clipboard, i18n: NzI18nService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; onClick(): void; onCopied(): void; private updateTooltips; private updateIcons; }