UNPKG

ng-zorro-antd-yj

Version:

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

32 lines (31 loc) 1.05 kB
import { Platform } from '@angular/cdk/platform'; import { AfterViewInit, DoCheck, ElementRef, NgZone, OnDestroy } from '@angular/core'; export interface AutoSizeType { minRows?: number; maxRows?: number; } export declare function isAutoSizeType(value: string | boolean | AutoSizeType): value is AutoSizeType; export declare class NzAutosizeDirective implements AfterViewInit, OnDestroy, DoCheck { private elementRef; private ngZone; private platform; private autosize; private el; private cachedLineHeight; private previousValue; private previousMinRows; private minRows; private maxRows; private destroy$; private inputGap; nzAutosize: string | boolean | AutoSizeType; resizeToFitContent(force?: boolean): void; private cacheTextareaLineHeight; setMinHeight(): void; setMaxHeight(): void; noopInputHandler(): void; constructor(elementRef: ElementRef, ngZone: NgZone, platform: Platform); ngAfterViewInit(): void; ngOnDestroy(): void; ngDoCheck(): void; }