MooTools教程和资源(Webjx收集英文教程)(2)
Advanced Topics
The Dollar Safe Mode
An article explaining a good practice for plugin developers that want to make their libraries compliant with “MooTools 1.2.3 Dollar Safety”, which means that it respects the global name $ in edge cases where people need to use more than one JavaScript library at the same time.
Custom Events
A nice example on how to define and explore custom events (such as alt+clicking) in MooTools.
Element Storage
An overview on the Element Storage functionality. How it works and how it could be used to make code easier to write and better organised.
Chaining with MooTools
A guide to the MooTools’s Chain class and how it can be used in custom classes.
Set style per media
Using JavaScript for dynamic styling may defeat the purpose of having a style for each media, this tutorial shows one way to be media-specific while dynamically changing CSS properties.
Creating a custom “:selected” pseudo-class in MooTools
How to create your own pseudo-class selector in MooTools.
The Mouse Ghost
An interesting experiment on saving the cursor coordinates and then reproducing its movements.
5 Advanced techniques for MooTools development
Things that you don’t get by reading documentation.
Don’t repeat your Moo
A very insightful article on how to achieve reusability in your JavaScript code with MooTools, adhering to the DRY (Don’t Repeat Yourself) principle.
Private methods in MooTools
Shows how to implement private methods in JavaScript with MooTools.
The Singleton class mutator
A tutorial that shows how to write a class mutator that implements the singleton design pattern. A class mutator is a macro-like method/idiom to be used inside a class definition
Binds class mutator
A mutator that binds a method to the instance of a class so that it can be accessed thorough the ‘this’ keyword even in the class definition.
Plugins
SmoothScroll
Scroll smoothly through anchors within a single page.
Kroppr
A full-fledged image cropping/resizing/rotating plugin.
mooSocialize
A widget bar that manages a wide variety of social bookmarking and social network content sharing systems.
MooTools Event Calendar
A MooTools Calendar class that supports week/day/month view and the addition of events.
Pamoorama
It creates a container div that allows users to scroll through a containing image. Its intended use case if to horizontally scroll through a panorama image.
Slider
A Slider plugin that supports both vertical and horizontal bars that can be freely dragged or snap to predefined steps.
SortableTable
Sort and filter tables.
MooWheel
A data visualisation plugin that explores the possibilities of the canvas element.
Moosture
A Mouse gesture framework that allow you to trigger an event based on a predefined mouse gesture.
inlineEdit
An inline editor plugin that makes all elements with a specified class name editable and adds a special onSave hook method to save the changes.