ngx-cleave-directive
Version:
This directive integrates `cleave.js` into Angular Form.
21 lines (20 loc) • 886 B
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import { NgControl } from '@angular/forms';
import { CleaveOptions } from 'cleave.js/options';
import * as i0 from "@angular/core";
export declare class NgxCleaveDirective implements OnInit, OnDestroy {
private elementRef;
private ngControl;
rawValue: boolean;
set cleave(cleave: CleaveOptions);
get cleave(): CleaveOptions;
private _cleave;
private cleaveInstance?;
private viewToModelUpdate;
constructor(elementRef: ElementRef, ngControl: NgControl);
ngOnInit(): void;
ngOnDestroy(): void;
private setCleave;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxCleaveDirective, [null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxCleaveDirective, "input[cleave],textarea[cleave]", never, { "rawValue": "rawValue"; "cleave": "cleave"; }, {}, never>;
}