Book Image

MooTools 1.2 Beginner's Guide

Book Image

MooTools 1.2 Beginner's Guide

Overview of this book

MooTools is a simple-to-use JavaScript library, ideal for people with basic JavaScript skills who want to elevate their web applications to a superior level. If you're a newcomer to MooTools looking to build dynamic, rich, and user-interactive web site applications this beginner's guide with its easy-to-follow step-by-step instructions is all you need to rapidly get to grips with MooTools.
Table of Contents (14 chapters)
MooTools 1.2 Beginner's Guide
Credits
About the Authors
About the Reviewer
Preface

Designing the plugin


With a little forethought, we can effectively build a flexible class. We have to think of what the plugin is meant to do (and what it isn't meant to do), what options will be helpful, and the basic logic of how the plugin will work.

Often, it is helpful to invest some time in writing down necessary information about a plugin you're about to write. Your notes can be the blueprint of what you're building, and also serve as a great way to conceptualize the code logic of the plugin. I call this document a design sheet.

This design sheet can also help greatly when we finalize our code's documentation, and for preparation of the plugin for public release. The design sheet can change; you may realize that there are more options that you need in order to make the plugin truly customizable, and there may be options that you thought would be good to have, but would just be overkill in the final product.

Before we begin any writing, we're going to design our plugin, so grab your...