react-scrollable-timeline
v1.1.0
Published
https://github.com/TinyStuff/react-scrollable-timeline
Downloads
4
Readme
react-scrollable-timeline
demo (https://tinystuff.github.io/react-scrollable-timeline/storybook-static/)
npm install react-scrollable-timeline
const events = [{
start: Date,
end: Date,
groupId: 'groupId',
title: 'eventtitle'
}];
<Timeline
events={events}
groups={groups}
groupKey={"groupId"}
/>
Props
interface TimeLineProps {
events: Event[]
groups?: Groups
groupKey?: string
startDate?: Date
endDate?: Date
width?: number
interval?: number
resourceHeaderWidth?: number
getGroupData?: any
resourceNode: any
itemNode?: any
dateNode?: any
onEventClick?: (Event) => void
}