UNPKG

@up-group-ui/react-controls

Version:
27 lines (26 loc) 1.12 kB
import * as React from 'react'; import { Column, Action, SortDirection } from './UpDataGrid'; import { ActionFactory } from './UpDataGridRow'; export interface UpDataGridRowHeaderState { isSelected: boolean; columns: Array<Column>; } export interface UpDataGridRowHeaderProps { columns: Array<Column>; isSelectionEnabled: boolean; actions: ActionFactory<any> | Array<Action>; onSortChange?: (c: Column, d: SortDirection) => void; onSelectionChange?: (isSelected: boolean) => void; displayRowActionsWithinCell?: boolean; textAlignCells?: 'center' | 'left' | 'right' | 'initial'; isAllDataChecked?: boolean; isSelectionAllEnabled?: boolean; } export default class UpDataGridRowHeader extends React.Component<UpDataGridRowHeaderProps, UpDataGridRowHeaderState> { static defaultProps: UpDataGridRowHeaderProps; constructor(props: any, context: any); onSelectionChange: (event: any, isSelected: any) => void; onSortChange: (c: Column, dir: SortDirection) => void; componentWillReceiveProps(nextProps: UpDataGridRowHeaderProps): void; render(): JSX.Element; }