react-calendar-timeline
Version:
react-calendar-timeline
18 lines (17 loc) • 859 B
TypeScript
import React, { Component } from 'react';
import { ReactCalendarGroupRendererProps, TimelineGroupBase, TimelineKeys } from '../types/main';
type Props<CustomGroup extends TimelineGroupBase = TimelineGroupBase> = {
groups: CustomGroup[];
width: number;
height: number;
groupHeights: number[];
keys: TimelineKeys;
groupRenderer?: (props: ReactCalendarGroupRendererProps<CustomGroup>) => React.ReactNode;
isRightSidebar?: boolean;
};
export default class Sidebar<CustomGroup extends TimelineGroupBase = TimelineGroupBase> extends Component<Props<CustomGroup>> {
shouldComponentUpdate(nextProps: Props<CustomGroup>): boolean;
renderGroupContent(group: CustomGroup, isRightSidebar: boolean | undefined, groupTitleKey: string, groupRightTitleKey: string): any;
render(): import("react/jsx-runtime").JSX.Element;
}
export {};