UNPKG

ng-zorro-antd

Version:

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

63 lines (62 loc) 2 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * 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 { Platform } from '@angular/cdk/platform'; import { AfterContentChecked, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core'; import { IconDirective, ThemeType } from '@ant-design/icons-angular'; import { NzIconService } from './nz-icon.service'; /** * This directive extends IconDirective to provide: * * - IconFont support * - spinning * - old API compatibility * * @break-changes * * - old API compatibility, icon class names would not be supported. * - properties that not started with `nz`. */ export declare class NzIconDirective extends IconDirective implements OnInit, OnChanges, OnDestroy, AfterContentChecked { iconService: NzIconService; elementRef: ElementRef; renderer: Renderer2; private platform; nzSpin: boolean; nzRotate: number; nzType: string; nzTheme: ThemeType; nzTwotoneColor: string; nzIconfont: string; /** @deprecated 8.0.0 avoid exposing low layer API. */ spin: boolean; /** @deprecated 8.0.0 avoid exposing low layer API. */ iconfont: string; type: string; private classNameObserver; private el; private destroy$; private _type; /** * Replacement of `changeIcon` for more modifications. * @param oldAPI */ private changeIcon2; private classChangeHandler; private handleSpin; private handleRotate; private setClassName; private setSVGData; constructor(iconService: NzIconService, elementRef: ElementRef, renderer: Renderer2, platform: Platform); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; /** * If custom content is provided, try to normalize SVG elements. */ ngAfterContentChecked(): void; }