jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
32 lines (24 loc) • 699 B
text/typescript
import { Component } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
index: any = jqx.cookie.cookie('jqxDropDownList_jqxWidget');
constructor() {
if (this.index == undefined) this.index = 0;
}
source: any = {
datatype: 'json',
datafields: [
{ name: 'CompanyName' },
{ name: 'ContactName' }
],
id: 'id',
url: '../assets/customers.txt'
};
dataAdapter: any = new jqx.dataAdapter(this.source);
listOnSelect(event: any): void {
jqx.cookie.cookie('jqxDropDownList_jqxWidget', event.args.index);
}
}