Follow Me On Twitterv0.3.0
MooTools Events Calendar
Requirements:
- MooTools 1.2.3 Core
- MooTools 1.2.3.1 More
- Tips
- Scroller
- Date
Options:
- calContainer - (string: defaults to null) the id of the element that the calendar will be created in
- newDate - (string: defaults to the current date[null]) used to set the selected date (accepts the same date formats as the JavaScript Date object)
- view - (string: defaults to 'month') options are 'month', 'week', or 'day'
- weekStart - (int: defaults to '0') sets the first day of the week (0 = Sunday and 1 = Monday)
- feedPlugin - (obj: default is empty string) an object that returns events in the JSON format
- feedSpan - (int: default is 3) the number of months (past and future) of events to retrieve.
- scroller - (bool: default is true) used to enable or disable the scroller. It should be set to false for small calendar.
-
cEvents - (array: default is empty) used to manually enter events like so:
# # cEvents: [ # { # title:'Get Groceries', # start:'2009-02-05', # end:'2009-02-06', # location:'Store' # }, # { # title:'Party Time', # start:'2009-02-20T23:30:00-06:00', # end:'2009-02-20T24:30:00-06:00', # location:'Da Club' # }, # { # title:'Hair Cut', # start:'2009-02-22T13:00:00-06:00', # end:'2009-02-22T13:30:00-06:00', # location:'Cuttin Corral' # } # ]
Examples:
- inject calendar into element where id='calBody'
- inject calendar into element where id='calBody'
- set initial selected date to January 25, 2009
- set default view to 'week'
- set initial selected date to January 25, 2009
- set default view to 'week'
- inject calendar into element where id='calBody'
- set initial selected date to August 5, 2009
- use the mecPHPPlugin for PHP event feeds (eventFeed.php)
- set initial selected date to August 5, 2009
- use the mecPHPPlugin for PHP event feeds (eventFeed.php)