|
export class AppComponent {
public data: Object[];
public ddldata: Object[];
public pageOptions: Object;
public category: string[];
@ViewChild('grid')
public grid: GridComponent;
public filterOptions: FilterSettingsModel;
constructor( ) {
}
complete(args) {
if(args.requestType === "filtering") {
(document.getElementsByClassName('e-filtertext')[3] as any).value = ">"+args.currentFilterObject.value; //set the sign value here
}
}
public ngOnInit(): void {
this.data = categoryData;
this.pageOptions = { pageSize: 10, pageCount: 5 };
this.category = ['All', 'Beverages', 'Condiments', 'Confections', 'Dairy Products', 'Grains/Cereals',
'Meat/Poultry', 'Produce', 'Seafood'];
this.ddldata = this.category;
this.filterOptions = {
columns: [{ field: 'UnitsInStock', operator: 'greaterThan', value: 17 }]
};
}} |