ng-jhipster
Version:
A Jhipster util library for Angular 2
18 lines (17 loc) • 578 B
TypeScript
import { Renderer, EventEmitter, ElementRef } from '@angular/core';
import { JhiConfigService } from '../config.service';
export declare class JhiSortDirective {
predicate: string;
ascending: boolean;
callback: Function;
sortIcon: string;
sortAscIcon: string;
sortDescIcon: string;
sortIconSelector: string;
predicateChange: EventEmitter<any>;
ascendingChange: EventEmitter<any>;
element: any;
constructor(el: ElementRef, renderer: Renderer, configService: JhiConfigService);
sort(field: any): void;
private resetClasses();
}