taffy-coustom-ui
Version:
22 lines (18 loc) • 464 B
text/typescript
import { Component } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
url: string = './../../../sampledata/customers.txt';
source: any =
{
datatype: 'json',
datafields: [
{ name: 'CompanyName' },
{ name: 'ContactName' }
],
url: this.url
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}