UNPKG

jqwidgets-scripts-custom

Version:

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

22 lines (16 loc) 566 B
import { Component, ViewChild, OnChanges, Output, EventEmitter } from '@angular/core'; import { jqxButtonComponent } from 'jqwidgets-framework/jqwidgets-ts/angular_jqxbuttons'; @Component({ selector: 'cbutton', templateUrl: './button.component.html' }) export class CustomButtonComponent { @ViewChild('referenceButton') button: jqxButtonComponent; @Output() clickEvent = new EventEmitter(); customClickEvent(): void { this.clickEvent.emit(); }; public disabled(state: boolean): void { this.button.disabled(state); }; }