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