UNPKG

ng-smart-forms

Version:

Zero-config reactive forms with built-in validation, auto-save, and smart error handling for Angular

17 lines (16 loc) 849 B
import { OnInit, ElementRef, Renderer2 } from '@angular/core'; import { FormControl } from '@angular/forms'; import { SmartFieldConfig } from '../interfaces/smart-form.interface'; import * as i0 from "@angular/core"; export declare class SmartInputDirective implements OnInit { private el; private renderer; smartInput: FormControl; fieldConfig: SmartFieldConfig; constructor(el: ElementRef, renderer: Renderer2); ngOnInit(): void; private setupFieldEnhancements; private addErrorContainer; static ɵfac: i0.ɵɵFactoryDeclaration<SmartInputDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SmartInputDirective, "[smartInput]", never, { "smartInput": { "alias": "smartInput"; "required": false; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; }; }, {}, never, never, true, never>; }