Calendar service.
Class Calendar( [instance] ) from \ Service(( instance))
instance | An instance name for this service. |
Displays a month/event oriented small calendar.
The service prepares a matrix of 5 rows x columns so that the skin can easily render it.
Each element is an entry of .[number, text], where "text" is an html that should be rendered in place of each number.
If the number is 0, then the day is considered "out of range" and gets shaded.
Properties | |
full_day_provider | Config: Provider generating a list of full days. |
skin_month | Skin: Month render skin. May be used to create custom prev/next months links. |
Config: Provider generating a list of full days.
The provider is a hook name, or an array of hook names and the needed parameters, that is invoked to determine which days are full, and what to do when a full day is clicked.
The hook will be called with the current year and month as two parameters, and it must return either nil or a list of pairs [day number, action]; the action can be nil if nothing should be done even if the day is full.
Skin: Month render skin. May be used to create custom prev/next months links.