EZCalendar v0.1.5 EZCalendar.HTML.CalendarUtil

Helper functions used in the HTML calendars.

Can be useful for creating custom calendars

Summary

Functions

Builds a row of calendar dates with the appropriate css classes

Functions

build_calendar_row(dates, func)

Builds a row of calendar dates with the appropriate css classes.

It accepts a list of dates and a function that will be called with each date to render its contents.

build_weekdays(days \\ ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])

Builds a table row containing day of the week names.

Takes a list of strings as an optional argument, defaults to Sunday..Saturday