Other Props
Some other properties of TimelineCalendar
minDate
Minimum display date. Format: (YYYY-MM-DD). Default is 2 year ago
stringmaxDate
Maximum display date. Format: (YYYY-MM-DD). Default is 2 year later
stringinitialDate
Initial display date. Format: (YYYY-MM-DD). Default is today
stringstart
Start hour of the day. Default is 0
end
End hour of the day. Default is 24
hourWidth
Width of hour column. Default is 53
firstDay
First day of the week. Default is 1
(Monday)
timeInterval
The interval of time slots. Default is 60
minutes
syncedLists
Auto scroll header when scroll time slots view. Default is true
spaceFromTop
Space between header view and time slots view. Default is 16
spaceFromBottom
Space below time slots view. Default is 16
isShowHalfLine
Show a line in the middle of the interval. Default is true
showNowIndicator
Show a line at current time. Default is true
scrollToNow
Auto scroll to current time. Default is true
rightEdgeSpacing
Spacing at the right edge of events. Default is 1
overlapEventsSpacing
Spacing between overlapping events. Default is 1
renderDayBarItem
Custom header component
functionrenderEventContent
Custom component rendered inside an event
functiononPressDayNum
Callback function will be called when day in header is pressed
functiononPressBackground
Callback function will be called when time slots view is pressed
functiononLongPressBackground
Callback function will be called when time slots view is long pressed
onPressOutBackground
Callback function will be called when time slots view is pressed out
functiononPressEvent
Callback function will be called when the event item is pressed
functionisShowHeader
Show/Hide header component. Default is true
onChange
Callback function will be called when the timeline is scrolling
booleanhourFormat
Hour format. Default is HH:mm
eventAnimatedDuration
How long the animation should last when the style of the event is changed. Default is 250
useHaptic
Haptic Feedback when drag to create/edit.
booleaneditEventGestureEnabled
Enable drag with selected event. Default is true
renderSelectedEventContent
Custom component rendered inside an selected event
functiontimeZone
Use calendar in different time zones
stringrenderHalfLineCustom
Custom component rendered inside the line in the middle of the interval
functionhalfLineContainerStyle
Container style of the line in the middle of the interval.
functionnowIndicatorInterval
Update indicator at specified intervals (in milliseconds). Default is 1000
calendarWidth
Width of calendar. Default is window width
onTimeIntervalHeightChange
Callback function will be called when the time interval height is changed
function