jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
27 lines (21 loc) • 822 B
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxFormattedInputComponent } from 'jqwidgets-ng/jqxformattedinput';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
('myFormattedInput', { static: false }) 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);
}
}