Chapter 4. Plugin principles
This chapter covers
- Plugin design
- Guiding principles for development
The scope for a jQuery plugin is wide open—from basic class changes and event handlers, through selectors and animations, to full-blown graphical widgets with remote access. The only limit is your imagination.
In the previous chapter you saw how to create custom selectors for use in jQuery, giving you some simple examples of one way to enhance its abilities. Now we’ll take a step back and consider the plugin design and creation process as a whole. Whatever type of plugin you choose to create, you should follow best practice principles so that your plugin will survive and prosper within the wider jQuery and JavaScript environments.
This chapter ...
Get Extending jQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.