ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
63 lines (62 loc) • 2.69 kB
TypeScript
/**
* 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 { Directionality } from '@angular/cdk/bidi';
import { ChangeDetectorRef, ComponentFactory, ComponentFactoryResolver, ElementRef, EventEmitter, OnDestroy, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
import { NzButtonType } from 'ng-zorro-antd/button';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { BooleanInput, NgStyleInterface, NzTSType } from 'ng-zorro-antd/core/types';
import { NzTooltipBaseDirective, NzToolTipComponent, NzTooltipTrigger, PropertyMapping } from 'ng-zorro-antd/tooltip';
import { Subject } from 'rxjs';
export declare class NzPopconfirmDirective extends NzTooltipBaseDirective {
static ngAcceptInputType_nzCondition: BooleanInput;
static ngAcceptInputType_nzPopconfirmShowArrow: BooleanInput;
title?: NzTSType;
directiveTitle?: NzTSType | null;
trigger?: NzTooltipTrigger;
placement?: string | string[];
origin?: ElementRef<HTMLElement>;
mouseEnterDelay?: number;
mouseLeaveDelay?: number;
overlayClassName?: string;
overlayStyle?: NgStyleInterface;
visible?: boolean;
nzOkText?: string;
nzOkType?: string;
nzCancelText?: string;
nzIcon?: string | TemplateRef<void>;
nzCondition: boolean;
nzPopconfirmShowArrow: boolean;
readonly visibleChange: EventEmitter<boolean>;
readonly nzOnCancel: EventEmitter<void>;
readonly nzOnConfirm: EventEmitter<void>;
protected readonly componentFactory: ComponentFactory<NzPopconfirmComponent>;
protected getProxyPropertyMap(): PropertyMapping;
constructor(elementRef: ElementRef, hostView: ViewContainerRef, resolver: ComponentFactoryResolver, renderer: Renderer2, noAnimation?: NzNoAnimationDirective);
/**
* @override
*/
protected createComponent(): void;
}
export declare class NzPopconfirmComponent extends NzToolTipComponent implements OnDestroy {
noAnimation?: NzNoAnimationDirective | undefined;
nzCancelText?: string;
nzCondition: boolean;
nzPopconfirmShowArrow: boolean;
nzIcon?: string | TemplateRef<void>;
nzOkText?: string;
nzOkType: NzButtonType;
readonly nzOnCancel: Subject<void>;
readonly nzOnConfirm: Subject<void>;
protected _trigger: NzTooltipTrigger;
_prefix: string;
constructor(cdr: ChangeDetectorRef, directionality: Directionality, noAnimation?: NzNoAnimationDirective | undefined);
ngOnDestroy(): void;
/**
* @override
*/
show(): void;
onCancel(): void;
onConfirm(): void;
}