taffy-coustom-ui
Version:
28 lines (24 loc) • 559 B
text/typescript
import { Component } from '@angular/core';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
url: string = './../../../sampledata/beverages.txt';
source: any =
{
datatype: 'json',
datafields: [
{ name: 'calories' },
{ name: 'name' }
],
url: this.url
};
dataAdapter: any = new jqx.dataAdapter(this.source);
getWidth() : any {
if (document.body.offsetWidth < 600) {
return '90%';
}
return 600;
}
}