UNPKG

jqwidgets-scripts-custom

Version:

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

32 lines (25 loc) 1.01 kB
import { Component, ViewChild } from '@angular/core'; import { jqxFormattedInputComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxformattedinput'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('myFormattedInput') myFormattedInput: jqxFormattedInputComponent; getDecimal(): void { let decimalValue = this.myFormattedInput.val('decimal'); alert('Decimal Value: ' + decimalValue); }; getExponential(): void { let exponentialValue = this.myFormattedInput.val('exponential'); alert('Exponential Notation: ' + exponentialValue); }; getScientific(): void { let scientificValue = this.myFormattedInput.val('scientific'); alert('Scientific Notation: ' + scientificValue); }; getEngineering(): void { let engineeringValue = this.myFormattedInput.val('engineering'); alert('Engineering Notation: ' + engineeringValue); }; }