UNPKG

jqwidgets-scripts-custom

Version:

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

27 lines (21 loc) 803 B
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; getOctal(): void { let octalValue = this.myFormattedInput.val('octal'); alert('Octal value: ' + octalValue); } getDecimal(): void { let decimalValue = this.myFormattedInput.val('decimal'); alert('Decimal value: ' + decimalValue); } getHexadecimal(): void { let hexadecimalValue = this.myFormattedInput.val('hexadecimal'); alert('Hexadecimal value: ' + hexadecimalValue); } }