UNPKG

inet-core

Version:
27 lines (26 loc) 1.01 kB
/** * Inspired from: https://stevepapa.com/ng-autosize/ */ import { AfterViewInit, ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class AutoSizeDirective implements AfterViewInit { element: ElementRef; private el; private _minHeight; private _maxHeight; private _lastHeight; private _clientWidth; get minHeight(): string; set minHeight(val: string); get maxHeight(): string; set maxHeight(val: string); onResize(): void; onInput(): void; constructor(element: ElementRef); ngAfterViewInit(): void; adjust(): void; updateMinHeight(): void; updateMaxHeight(): void; static ɵfac: i0.ɵɵFactoryDeclaration<AutoSizeDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<AutoSizeDirective, "textarea[appAutoSize]", ["appAutoSize"], { "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, {}, never, never, true, never>; }