Wicked Spiral Studios

jsdoc-moo

A template and plugin for JsDoc-Toolkit in the style of Mootools 1.2 Docs.

GitHub Project


Calendar!

A high perfomance calendar widget.

Example

Changing the Calendar Markup

Following the example of daKmoR, I have tried to separate functionality and layout in both the Calendar and mFrame classes. I have chosen to use the new Class.Refactor functionality coming to Mootools. Thus, you can define a new UI refactoring and include it instead:

Simple UI for Calendar
Calendar = Class.refactor(Calendar, { build: function(){ // UI controls interaction this.source.addEvent('click', this.show); this.source.addEvent('focus', this.show); // must define left and right for holding current and next month this.left = new Element('div').inject(this.contents); this.right = new Element('div').inject(this.contents); } });
Copyright © 1999-2009 Will Asche, Wicked Spiral Studios. Valid XHTML1.1 and CSS 2.   –   < will (at) wickedspiral (dot) com >