UNPKG

790 BTypeScriptView Raw
1import { NbSortRequest } from '../tree-grid-sort.component';
2import { NbTreeGridPresentationNode } from './tree-grid.model';
3import * as i0 from "@angular/core";
4/**
5 * Service used to sort tree grid data. Uses Array.prototype.sort method.
6 * If you need custom sorting, you can extend this service and override comparator or whole sort method.
7 */
8export declare class NbTreeGridSortService<T> {
9 sort(request: NbSortRequest, data: NbTreeGridPresentationNode<T>[]): NbTreeGridPresentationNode<T>[];
10 protected comparator(request: NbSortRequest, na: NbTreeGridPresentationNode<T>, nb: NbTreeGridPresentationNode<T>): number;
11 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridSortService<any>, never>;
12 static ɵprov: i0.ɵɵInjectableDeclaration<NbTreeGridSortService<any>>;
13}