UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

26 lines (22 loc) 928 B
import { Component, ViewChild } from '@angular/core'; import { jqxMaskedInputComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxmaskedinput'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('numericInput') myNumericInput: jqxMaskedInputComponent; @ViewChild('zipCodeInput') myZipCodeInput: jqxMaskedInputComponent; @ViewChild('ssnInput') mySsnInput: jqxMaskedInputComponent; @ViewChild('phoneInput') myPhoneInput: jqxMaskedInputComponent; @ViewChild('regexInput') myRegexInput: jqxMaskedInputComponent; @ViewChild('disabledInput') myDisabledInput: jqxMaskedInputComponent; clear(): void { this.myNumericInput.clear(); this.myZipCodeInput.clear(); this.mySsnInput.clear(); this.myPhoneInput.clear(); this.myRegexInput.clear(); this.myDisabledInput.clear(); } }