UNPKG

@up-group-ui/react-controls

Version:
23 lines (22 loc) 824 B
import * as React from 'react'; import { Column } from './UpDataGrid'; import { Action } from './UpDataGrid'; export interface UpDataGridCellState { isSelected: boolean; } export declare type UpDataGridCellRenderProps<P extends object = object> = ReturnType<UpDataGridCell['getApi']> & P; declare type RenderCallback = (args: UpDataGridCellRenderProps) => JSX.Element; export interface UpDataGridCellProps { value?: any; column?: Column; children?: RenderCallback | React.ReactNode; render?: RenderCallback; component?: React.ComponentType<UpDataGridCellProps>; actions?: Array<Action>; } export default class UpDataGridCell extends React.Component<UpDataGridCellProps, UpDataGridCellState> { constructor(props: any, context: any); private getApi; render(): JSX.Element; } export {};