@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
33 lines (32 loc) • 1.19 kB
TypeScript
import { DefaultControlValueAccessor } from './../common/default-control-value-accessor';
import { FormControl } from '@angular/forms';
import { ElementRef, OnInit, AfterViewInit, Renderer2 } from '@angular/core';
export declare class AsiTextareaComponent extends DefaultControlValueAccessor implements OnInit, AfterViewInit {
private renderer;
private elementRef;
/** html id */
id: string;
/** html name */
name: string;
/** Label to display (is translated) */
label: string;
/** Label position */
labelPosition: 'top' | 'left' | 'right' | 'bottom' | 'bottom-center' | 'top-center';
/** Placeholder to display (is translated) */
placeholder: string;
/** number of rows to display */
rows: number;
/** number of cols */
cols: number;
/** max length of the text */
maxlength: number;
/** Allow you to define a regex that the input must respect */
pattern: RegExp;
textareaControl: FormControl;
textareaElm: ElementRef;
constructor(renderer: Renderer2, elementRef: ElementRef);
ngOnInit(): void;
ngAfterViewInit(): void;
private isValide(value);
writeValue(value: string): void;
}