Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 6x 6x 75x 25x 16x 2x | import { TableSection } from "./TableSection";
export abstract class DataTable extends TableSection {
protected abstract sortColumnInternal: string;
protected abstract sortOrderInternal: number;
public abstract doSort(col: string): void;
public abstract get rows(): unknown[]; // typed per implementation
public readonly paneClass = "tableCaption" as const;
public get sortColumn(): string { return this.sortColumnInternal; }
public get sortOrder(): number { return this.sortOrderInternal; }
// Default exists implementation for data tables
public exists(): boolean {
return this.rows.length > 0;
}
}
|