You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Do not show days of other months in month page. Default = false
94
94
hideExtraDays={true}
95
-
// If hideArrows=false and hideExtraDays=false do not swich month when tapping on greyed out
95
+
// If hideArrows=false and hideExtraDays=false do not switch month when tapping on greyed out
96
96
// day from another month that is visible in calendar page. Default = false
97
97
disableMonthChange={true}
98
98
// If firstDay=1 week starts from Monday. Note that dayNames and dayNamesShort should still start from Sunday.
99
99
firstDay={1}
100
+
// Hide day names. Default = false
101
+
hideDayNames={true}
102
+
// Show week numbers to the left. Default = false
103
+
showWeekNumbers={true}
100
104
/>
101
105
```
102
106
103
107
#### Date marking
104
108
109
+
**!Disclaimer!** Make sure that `markedDates` param is immutable. If you change `markedDates` object content but the reference to it does not change calendar update will not be triggered.
110
+
105
111
Dot marking
106
112
107
113
<kbd>
@@ -114,12 +120,37 @@ Dot marking
114
120
markedDates={{
115
121
'2012-05-16': {selected:true, marked:true},
116
122
'2012-05-17': {marked:true},
117
-
'2012-05-18': {disabled:true}
123
+
'2012-05-18': {marked:true, dotColor:'red'},
124
+
'2012-05-19': {disabled:true}
118
125
}}
119
126
/>
120
127
```
121
128
122
-
Interval marking
129
+
You can customise a dot color for each day independently.
Use markingType = 'multi-dot' if you want to display more than one dot. Both the Calendar and CalendarList control support multiple dots by using 'dots' array in markedDates. The properties 'key' and 'color' are mandatory while 'selectedColor' is optional. If selectedColor is omitted then 'color' will be used for selected dates.
// Date marking style [simple/interactive]. Default = 'simple'
142
-
markingType={'interactive'}
172
+
// Date marking style [simple/period/multi-dot]. Default = 'simple'
173
+
markingType={'period'}
143
174
/>
144
175
```
145
176
@@ -165,6 +196,7 @@ The loading indicator next to month name will be displayed if `<Calendar />` has
165
196
}}
166
197
// Specify theme properties to override specific styles for calendar parts. Default = {}
167
198
theme={{
199
+
backgroundColor:'#ffffff',
168
200
calendarBackground:'#ffffff',
169
201
textSectionTitleColor:'#b6c1cd',
170
202
selectedDayBackgroundColor:'#00adf5',
@@ -186,6 +218,55 @@ The loading indicator next to month name will be displayed if `<Calendar />` has
186
218
/>
187
219
```
188
220
221
+
#### Advanced styling
222
+
223
+
If you want to have complete control over calendar styles you can do it by overriding default style.js files. For example, if you want to override calendar header style first you have to find stylesheet id for this file:
0 commit comments