@visactor/vtable
Version:
canvas table width high performance
30 lines (29 loc) • 1.45 kB
TypeScript
import type { ColumnIconOption, RectProps, SortOrder, SvgIcon } from '../ts-types';
import { ImageStyle } from './style/ImageStyle';
import { TextHeaderStyle } from './style';
import type { BaseTableAPI } from '../ts-types/base-table';
import { CheckboxStyle } from './style/CheckboxStyle';
export declare class HeaderHelper {
normalIcon: SvgIcon;
upIcon: SvgIcon;
downIcon: SvgIcon;
freezeIcon: SvgIcon;
frozenIcon: SvgIcon;
frozenCurrentIcon: SvgIcon;
dropDownAbsoluteIcon: SvgIcon;
expandIcon: SvgIcon;
collapseIcon: SvgIcon;
_table: BaseTableAPI;
constructor(_table: BaseTableAPI);
getIcons(col: number, row: number): ColumnIconOption[];
getFrozenIcon(col: number, row: number): ColumnIconOption | null;
getSortIcon(order: SortOrder | undefined, _table: BaseTableAPI, col: number, row: number): ColumnIconOption | null;
getSortIconForPivotTable(order: SortOrder | undefined, _table: BaseTableAPI, col: number, row: number): ColumnIconOption | null;
private getDropDownStateIcons;
getDropDownIconRect(cellRect: RectProps, marginTop: number, baseline?: string): RectProps;
getHierarchyIcon(col: number, row: number): SvgIcon;
getHierarchyIconWidth(): number;
private checkDropDownIcon;
getStyleClass(headerType: 'text' | 'image' | 'video' | 'link' | 'checkbox'): typeof TextHeaderStyle | typeof CheckboxStyle | typeof ImageStyle;
setTableColumnsEditor(): void;
}