ez_calendar v0.1.4 EZCalendar.HTML.CalendarUtil

Functions used in HTML calendars

Summary

Functions

Builds a row of calendar dates taking a list of dates and a function as arguments

Functions

build_calendar_row(dates, func)

Builds a row of calendar dates taking a list of dates and a function as arguments.

The function 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