@up-group-ui/react-controls
Version:
Up shared react controls
21 lines (20 loc) • 803 B
TypeScript
import * as React from 'react';
import { SortDirection, Column } from './UpDataGrid';
export interface UpDataGridCellHeaderState {
isSorted: boolean;
sortDirection: SortDirection;
}
export interface UpDataGridCellHeaderProps {
defaultSort?: SortDirection;
onSortChange?: (c: Column, d: SortDirection) => void;
column?: Column;
width?: string;
textAlignCells?: 'center' | 'left' | 'right' | 'initial';
className?: string;
}
export default class UpDataGridCellHeader extends React.Component<UpDataGridCellHeaderProps, UpDataGridCellHeaderState> {
constructor(props: UpDataGridCellHeaderProps, context: any);
onCellClick: (sortDirection?: SortDirection) => void;
componentWillReceiveProps(newProps: UpDataGridCellHeaderProps): void;
render(): JSX.Element;
}