@vraj.patel/viitorcloud-ng-utility-library-test-9
Version:
The **ViitorCloud NG Utility Library** developed with the Angular 16 framework, stands out for its exceptional adaptability and reusability within Angular projects. This comprehensive collection encompasses utility services, directives, and components str
19 lines (18 loc) • 1 kB
TypeScript
import { ElementRef } from "@angular/core";
import * as i0 from "@angular/core";
export declare class VcAllowNumberOnlyDirective {
private el;
vcAllowNumberOnly: boolean;
regex: RegExp;
set regexType(type: string);
/**
* The constructor function takes an ElementRef parameter and assigns it to the private el property.
* @param {ElementRef} el - The `el` parameter is of type `ElementRef`, which is a wrapper around a
* native element inside a View. It can be used to access properties and methods of the native
* element.
*/
constructor(el: ElementRef);
keyPress(event: KeyboardEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<VcAllowNumberOnlyDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<VcAllowNumberOnlyDirective, "[vcAllowNumberOnly]", never, { "vcAllowNumberOnly": { "alias": "vcAllowNumberOnly"; "required": false; }; "regexType": { "alias": "regexType"; "required": false; }; }, {}, never, never, true, never>;
}