jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
43 lines (34 loc) • 1.17 kB
text/typescript
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { jqxComboBoxComponent } from 'jqwidgets-ng/jqxcombobox';
({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
('myComboBox', { static: false }) myComboBox: jqxComboBoxComponent;
source: any =
{
datatype: 'json',
datafields: [
{ name: 'CompanyName' },
{ name: 'ContactName' }
],
id: 'id',
url: './../../../sampledata/customers.txt'
};
dataAdapter: any = new jqx.dataAdapter(this.source);
noneAnimationOnChecked(): void {
this.myComboBox.animationType('none');
};
slideAnimationOnChecked(): void {
this.myComboBox.animationType('slide');
};
count = 0; //Stops the Overwrite of the animation type on initialization
fadeAnimationOnChecked(): void {
if (this.count === 1)
this.myComboBox.animationType('fade');
this.count = 1;
};
}