UNPKG

733 BTypeScriptView Raw
1import { h, JSX } from 'preact';
2import { BaseComponent, BaseProps } from '../base';
3import { CSSDeclaration, TColumn } from '../../types';
4export interface THProps extends BaseProps, JSX.HTMLAttributes<HTMLTableCellElement> {
5 index: number;
6 column: TColumn;
7 style?: CSSDeclaration;
8}
9export interface THState {
10 style: CSSDeclaration;
11}
12export declare class TH extends BaseComponent<THProps, THState> {
13 private sortRef;
14 private thRef;
15 constructor(props: any, context: any);
16 private isSortable;
17 private isResizable;
18 private onClick;
19 private keyDown;
20 componentDidMount(): void;
21 private content;
22 private getCustomAttributes;
23 render(): h.JSX.Element;
24}