jsdoc-moo
A template and plugin for JsDoc-Toolkit in the style of Mootools 1.2 Docs.
Calendar!
A high perfomance calendar widget.
-
Requirements:
- Mootools 1.2.1 (trunk)
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);
}
});