UNPKG

ng4-input-counter

Version:

A very cool input which display characters counter and can be configured to display counter bounds.

36 lines (35 loc) 1.05 kB
import { AfterViewInit, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; export declare class InputCounterComponent implements AfterViewInit, ControlValueAccessor { innerValue: any; onTouchedCallback: () => void; onChangeCallback: (_: any) => void; counter: number; enabled: boolean; id: string; type: string; name: string; maxlength: number; minlength: number; className: string; placeholder: string; disabled: boolean; readonly: boolean; pattern: string; required: boolean; focus: EventEmitter<any>; blur: EventEmitter<any>; ngAfterViewInit(): void; enableCounter(): void; disableCounter(): void; displayMinLength(): boolean; displayMaxLength(): boolean; onFocus(): void; onBlur(): void; updateCounter(): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; value: any; }