UNPKG

react-calendar-timeline

Version:
18 lines (17 loc) 660 B
import React, { Component } from 'react'; export type RowClickEvent = (evt: React.MouseEvent<HTMLDivElement>, index: number) => void; export interface GroupRowsProps<T> { canvasWidth: number; lineCount: number; groupHeights: number[]; onRowClick: RowClickEvent; onRowDoubleClick: RowClickEvent; clickTolerance?: number; groups: T[]; horizontalLineClassNamesForGroup?: (group: T) => string[]; onRowContextClick: RowClickEvent; } export default class GroupRows<T> extends Component<GroupRowsProps<T>> { shouldComponentUpdate(nextProps: GroupRowsProps<T>): boolean; render(): import("react/jsx-runtime").JSX.Element; }