@true-directive/base
Version:
The set of base classes for the TrueDirective Grid
20 lines (19 loc) • 504 B
TypeScript
/**
* Copyright (c) 2018-2019 Aleksey Melnikov, True Directive Company.
* @link https://truedirective.com/
* @license MIT
*/
export declare enum SortType {
NONE = "None",
ASC = "ASC",
DESC = "DESC"
}
export declare class SortInfo {
fieldName: string;
sortType: SortType;
constructor(fieldName: string, sortType: SortType);
set(fieldName: string, sortType: SortType): void;
invert(): void;
sort(fieldName: string): void;
toString(): string;
}