UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

23 lines (17 loc) 646 B
import { Component, ViewChild } from '@angular/core'; import { jqxComplexInputComponent } from 'jqwidgets-ng/jqxcomplexinput'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('myComplexInput', { static: false }) myComplexInput: jqxComplexInputComponent; getRealPart(): void { let realPart = this.myComplexInput.getReal(); alert(`Real part is ${realPart}`); } getImaginarypart(): void { let imaginaryPart = this.myComplexInput.getImaginary(); alert(`Imaginary part is ${imaginaryPart}`); } }