@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
8 lines • 379 B
TypeScript
import { TableProps } from './interfaces';
export declare function useRowEvents<T>({
onRowClick,
onRowContextMenu
}: Pick<TableProps, 'onRowClick' | 'onRowContextMenu'>): {
onRowClickHandler: ((rowIndex: number, item: T, event: React.MouseEvent) => void) | undefined;
onRowContextMenuHandler: ((rowIndex: number, item: T, event: React.MouseEvent) => void) | undefined;
};