jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
32 lines (24 loc) • 742 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: './../../../sampledata/customers.txt'
};
dataAdapter: any = new jqx.dataAdapter(this.source);
listOnSelect(event: any): void {
jqx.cookie.cookie('jqxDropDownList_jqxWidget', event.args.index);
}
}