MooMonth

Files

MooMonth.js

MooMonthFull javascript calendar with MooTools.

License

CC-GNU LGPL, http://creativecommons.org/licenses/LGPL/2.1/

MooMonth Copyright

copyright © 2007 Roland Poulter, dnalor@moomonth.com

MooMonth Credits

  • All this wouldn’t be possible without MooTools http://mootools.net, © 2007 Valerio Proietti, MIT-style license

Constants

$DaysPerWeek

MooMonth. Constants

Summary
Weeks always have 7 days

Properties

DaysPerWeek

Weeks always have 7 days

MooMonth. Module

Properties

Coorinates

Selectors

Transitions

MooMonth. Module. Coordinates

Alias: $mmC

Summary
Get the day, and week position from a MooMonth.Element day element, or UID.
Find the UID of a day based on it’s position.

Functions

from

from: function(el)

Get the day, and week position from a MooMonth.Element day element, or UID.

Arguments

el *OR* numberEither a MooMonth.Element day element, or a UID.

Returns

arrayAn array with the day, and week position.

toId

toId: function(d,
w)

Find the UID of a day based on it’s position.

Arguments

numberDay position, number.
numberWeek position, number.

Returns

numberUID of the MooMonth.Element day element.

MooMonth. Module. Selectors

Alias: $mmS

Summary
Find an element from a MooMonth.Element.
Same as from but assumes UID is just a number.
Find the UID of a MooMonth.Element element.

Functions

from

from: function(prefix,
uid)

Find an element from a MooMonth.Element.

Arguments

stringSelector prefix.
number *OR* arrayA UID.  OR Day poisition.  (/w week argument) OR Array with the day and week positions.
numberOptional, Week poisition.

Returns

elA calendar element.

fromId

fromId: function(prefix,
uid)

Same as from but assumes UID is just a number.

toId

toId: function(el)

Find the UID of a MooMonth.Element element.

Arguments

elMooMonth.Element element.

Returns

numberUID of the element.

Note

The UID from content in a MooMonth.Element is different then the UID from a wrapper element.

MooMonth. Module. Transitions

Alias: $mmT

Functions

forEach

forEach: function(effects,
styles)

Arguments

arrayA list of (MooTools: Fx.Elements) effects.
objectStyles to be passed into each effect as the transition.

MooMonth. DateObject

A “Utility” Class which adds a set property for seting dates.

Summary
Sets the date value, and calls this.update.

Properties

set

Sets the date value, and calls this.update.

Arguments

timestampNew date.

MooMonth.Day

Arguments

timestampThis date.
weekMooMonth.Week object.

MooMonth.Week

Arguments

timestampThis date.
monthMooMonth.Month object.

MooMonth. Month

Arguments

timestampThis date.
monthMooMonth.Year object.

MooMonth.Year

Arguments

timestampThis date.

MooMonth.Date

Arguments

timestampThis date.
moomonthOptional, MooMonth.Base object.

MooMonth. Session

MooMonth. Events

MooMonth. Event

MooMonth.Size

Arguments

moomonthMooMonth.Base object.
array *OR* width *OR* elAll Optional, Array with the width, and height.  OR Element width.  (/w height argument) OR An element to copy.
heightOptional, Element height.

MooMonth. Resize

Arguments

moomonthMooMonth.Base object.
optionsEffect options.

MooMonth. Element

Arguments

moomonthMooMonth.Base object.
elOptional, element to be used as the parenNode.

MooMonths (Array)

All initialized MooMonths get added to an array called MooMonths.

MooMonth. DefaultOptions

Object with the default MooMonth options.

MooMonth.Base

MooMonth.App

MooMonth.Mini

MooMonth. DatePicker

Weeks always have 7 days
Alias: $mmC
MooMonth.Module.Selectors
MooMonth.Module.Transitions
from: function(el)
Get the day, and week position from a MooMonth.Element day element, or UID.
toId: function(d,
w)
Find the UID of a day based on it’s position.
from: function(prefix,
uid)
Find an element from a MooMonth.Element.
fromId: function(prefix,
uid)
Same as from but assumes UID is just a number.
toId: function(el)
Find the UID of a MooMonth.Element element.
forEach: function(effects,
styles)