nggridify2
Version:
ng-gridify reimagined for Angular2+. Generic grid for angularJS with paging, sorting, the ability to export CSV and configurable content.
16 lines (12 loc) • 440 B
text/typescript
import { Pipe, PipeTransform } from '@angular/core';
import { NgGridifyService } from './../services/ng-gridify.service';
({
name: 'SortPipe',
pure: false
})
export class SortPipe implements PipeTransform {
constructor(private ngGridifyService: NgGridifyService) { }
transform(dataIn: any[], byProperty:string, ascending:boolean): any {
return this.ngGridifyService.Sort(dataIn, byProperty, ascending);
}
}