@up-group-ui/react-controls
Version:
Up shared react controls
27 lines (26 loc) • 1.06 kB
TypeScript
import * as React from 'react';
import { Column, Action } from './UpDataGrid';
export interface UpDataGridRowState {
}
export declare type ActionFactory<T> = (value: T) => Array<Action>;
export interface UpDataGridRowProps {
rowIndex: number;
isSelected: boolean;
value: any;
columns: Array<Column>;
actions: Array<Action> | ActionFactory<any>;
isSelectionEnabled: boolean;
onSelectionChange?: (rowIndex: number, row: any) => void;
onClick?: (rowIndex: number, row: any) => void;
getRowCustomClassName?: (rowIndex: number, row: any) => string;
isRowClickable?: boolean;
isOneRowSelected?: boolean;
}
export default class UpDataGridRow extends React.Component<UpDataGridRowProps, UpDataGridRowState> {
static defaultProps: UpDataGridRowProps;
constructor(props: any, context: any);
onSelectionChange: (event: any, isSelected: any) => void;
shouldComponentUpdate(nextProps: UpDataGridRowProps, nextState: any): boolean;
getRowClickAction: (finalActions: any) => () => void;
render(): JSX.Element;
}