gridjs
Version:
Advanced table plugin
17 lines (16 loc) • 515 B
TypeScript
import { h } from 'preact';
import { Comparator, TCell, TColumnSort } from '../../../types';
export interface SortConfig {
compare?: Comparator<TCell>;
direction?: 1 | -1;
}
export interface GenericSortConfig {
multiColumn?: boolean;
server?: {
url?: (prevUrl: string, columns: TColumnSort[]) => string;
body?: (prevBody: BodyInit, columns: TColumnSort[]) => BodyInit;
};
}
export declare function Sort(props: {
index: number;
} & SortConfig): h.JSX.Element;