CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

is it possible to custom render date?

Open chj-damon opened this issue 3 years ago • 1 comments

I can change the style of date, but I cannot change date the number. for example, I don't want just show 1, 2, 3 etc, but I want to show One, Two, Three etc...

Is it possible now?

chj-damon avatar Aug 06 '20 08:08 chj-damon

The the day of month number is not configurable using the stock renderer. https://github.com/stephy/CalendarPicker/blob/master/CalendarPicker/Day.js#L190

A prop similar to weekdays and months would need to be added to support this. The new prop would be an array named days that the Day component would use to override the default number. https://github.com/stephy/CalendarPicker#calendarpicker-props

Please submit a PR to add this feature.

peacechen avatar Aug 08 '20 02:08 peacechen