Skip to content

Commit

Permalink
docs: update docs to include all custom components (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
arecvlohe authored and jquense committed Nov 7, 2018
1 parent 08c2494 commit fef6f9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,30 @@ class Calendar extends React.Component {
* ```jsx
* let components = {
* event: MyEvent, // used by each view (Month, Day, Week)
* eventWrapper: MyEventWrapper,
* eventContainerWrapper: MyEventContainerWrapper,
* dayWrapper: MyDayWrapper,
* dateCellWrapper: MyDateCellWrapper,
* timeSlotWrapper: MyTimeSlotWrapper,
* timeGutterHeader: MyTimeGutterWrapper,
* toolbar: MyToolbar,
* agenda: {
* event: MyAgendaEvent // with the agenda view use a different component to render events
* time: MyAgendaTime,
* date: MyAgendaDate,
* },
* day: {
* header: MyDayHeader,
* event: MyDayEvent,
* },
* week: {
* header: MyWeekHeader,
* event: MyWeekEvent,
* },
* month: {
* header: MyMonthHeader,
* dateHeader: MyMonthDateHeader,
* event: MyMonthEvent,
* }
* }
* <Calendar components={components} />
Expand Down

0 comments on commit fef6f9d

Please sign in to comment.