freiksenet / react-calendar

A modular toolkit to build calendar-related things in React
http://freiksenet.github.io/react-calendar/
MIT License
249 stars 46 forks source link

Added child elements of Day to the agenda #16

Closed andru closed 9 years ago

andru commented 9 years ago

This is a small pull request which adds a means to add content to a day element.

I'm not sure what the long-term plan for the agenda is, but this pull-request allows any content to be added to the agenda by adding children to the Day element, e.g

//enable dayAgenda for all days
<Day dayAgenda={true} />

//add some content to today's agenda
<Day date={moment()}>This text will be appended to the agenda div</Day>
freiksenet commented 9 years ago

Thanks!