Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.86 KB

File metadata and controls

56 lines (43 loc) · 1.86 KB

Calendar context provider component
(code example) :::info This component extends Context props. :::

API

theme

Specify theme properties to override specific styles for calendar parts
<span style={{color: 'grey'}}>Theme

style

Specify style for calendar container element
<span style={{color: 'grey'}}>ViewStyle

date

Initial date in 'yyyy-MM-dd' format
<span style={{color: 'grey'}}>string

onDateChanged

Handler which gets executed when the date changes
<span style={{color: 'grey'}}>(date: string, updateSource: UpdateSource) => void

onMonthChange

Handler which gets executed when the month changes
<span style={{color: 'grey'}}>(date: DateData, updateSource: UpdateSource) => void

disableAutoDaySelection

The calendar navigation type in which to disable the auto day selection (get options from ExpandableCalendar.navigationTypes)
<span style={{color: 'grey'}}>CalendarNavigationTypes[]

showTodayButton

Whether to show the today button
<span style={{color: 'grey'}}>boolean

todayButtonStyle

Today button's style
<span style={{color: 'grey'}}>ViewStyle

todayBottomMargin

Today button's top position
<span style={{color: 'grey'}}>number

disabledOpacity

The opacity for the disabled today button (0-1)
<span style={{color: 'grey'}}>number

numberOfDays

The number of days to present in the timeline calendar (1-7)
<span style={{color: 'grey'}}>number

timelineLeftInset

The left inset of the timeline calendar (sidebar width)
<span style={{color: 'grey'}}>number