jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
38 lines (30 loc) • 958 B
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxComboBoxComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxcombobox';
export class AppComponent {
myComboBox: jqxComboBoxComponent;
source: any =
{
datatype: 'json',
datafields: [
{ name: 'CompanyName' },
{ name: 'ContactName' }
],
id: 'id',
url: '../assets/customers.txt',
async: false
};
dataAdapter: any = new jqx.dataAdapter(this.source);
bottomBtnOnChecked(): void {
this.myComboBox.dropDownVerticalAlignment('bottom');
}
count = 0; //Stops the Overwrite of the animation type on initialization
topBtnOnChecked(): void {
if (this.count === 1)
this.myComboBox.dropDownVerticalAlignment('top');
this.count = 1;
}
}