Hi,
I’m trying this lib a bit before committing but by the looks of it there is no way to show a timeline with days going far in the past. I have a requirement that I need to see 6 months in the past, but the oldest day I can render is the start of the current month.
Going through the doc, I though that maybe the min
and max
would help in combination with having “enough” months in the timeline view setting, but that doesn’t seems to work.
<Eventcalendar
className="md-drag-drop-bw-inst-project"
min={start_calendar} // This is 6 months ago
max={end_calendar} // This is 9 months from now
// timezonePlugin={luxonTimezone}
dataTimezone="utc"
displayTimezone="Europe/London"
data={projectDates}
resources={projectResources}
showControls={false}
dragToCreate={false}
dragToMove={true}
dragToResize={true}
dragInTime={true}
defaultSelectedDate={startDate}
onPageLoading={handlePageLoading}
onPageLoaded={handleProjectScroll}
onDestroy={detachProjectScroll}
onEventUpdated={handleProjectUpdated}
view={{
timeline: {
type: 'month',
size: 24, // Technically I should just need 15 but I was making sure we didn't ran out of months so they could go in the past too.
resolutionHorizontal: 'day',
eventList: true,
maxEventStack: 'all',
}
}}
/>