@up-group-ui/react-controls
Version:
Up shared react controls
26 lines (25 loc) • 831 B
TypeScript
import * as React from 'react';
import { WithThemeProps } from '../../../Common/theming/withTheme';
import { IntentType } from '../../../Common/theming/types';
import { ActionType } from '../../Inputs/Button/types';
interface ActionDataGrid {
label: string;
actionType?: ActionType;
onClick?: (rows: []) => Promise<any>;
}
interface ActionsDataGrid {
groupLabel: string;
validationLabel: string;
intent?: IntentType;
actions?: ActionDataGrid[];
confirmationMessage?: string;
}
export interface UpDataGridFooterProps {
pagination?: React.ReactElement;
actionsDataGrid?: ActionsDataGrid;
isPaginationEnabled?: boolean;
data?: Array<any>;
isDataFetching?: boolean;
}
declare const UpDataGridFooter: React.FC<UpDataGridFooterProps & WithThemeProps>;
export default UpDataGridFooter;