Below are links to Codesandbox instances for examples of how to use this repo. Feel free to fork these sandboxes and play around with this library's features. If you have any examples of cool uses of this library, submit a PR to add one!
Basic functionality of the timeline, included panning, zooming and rendering of items
Moving and Resizing examples. Clicking and dragging can move items into different groups. Notice the handleItemMove
and handleItemResize
handlers passed to the Timeline.
The itemRenderer
component allows you to customize what contents are shown in the item on the calendar.
You can restrict the moving and resizing of items at the item level by providing a canMove
and canResize
property with an item.
Adding a right sidebar is as easy as passing in a couple of props rightSidebarWidth
and rightSidebarContent
. Content in the right column is populated from the rightTitle
property on the group.
By managing the the visibleStartTime
and visibleEndTime
for multiple timelines, you can syncronize scroll across multiple timelines.
Through group manipulation, you can achieve tree group views.
Note that this is the user code manipulating groups to achieve tree group functionality. This example is an illustration of how you can achieve this functionality. This is not a feature that is directly supported by the library.
Using scrollRef
you can trigger scrolling and create an animation. This is an alternative to setting visibleStartTime
and visibleEndTime
.