EZCalendar v0.1.5 EZCalendar.Calendar behaviour
Behaviour definition for calendar types.
Summary
Callbacks
The first argument is a list of calendar dates containing the query results for each respective day
The first argument is a date erl parsed from the params
Types
Callbacks
The first argument is a list of calendar dates containing the query results for each respective day.
The second argument is the date erl parsed from the params.
Returns a calendar struct that should include the following fields:
:title
a string defining the current calendar
:dates
the list of date structs
:params
a map with the keys :day
, :month
and :year
representing the current date period
:next
a map with the keys :day
, :month
and :year
representing the next date period
:prev
a map with the keys :day
, :month
and :year
representing the previous date period
You can add extra fields to your calendar but these are required for it to function properly.