|
Chapter 10:
Plug-ins
Like a plug without a socket
I'm just waitin' 'round for you
—Devo,
"Don't You Know"
Throughout this book we have examined many of the ways in which the jQuery library can be used to accomplish a wide variety of tasks. Yet one aspect that has remained relatively unexplored is jQuery's extensibility. As powerful as the library is at its core, its elegant plug-in architecture has allowed developers to extend jQuery, making it an even more feature-rich library.
Although jQuery has been available for less than two years, it already supports over a hundred plug-ins—from small selector helpers to full-scale, user-interface widgets. In this chapter we'll take a brief look at three popular jQuery plug-ins and then create a few of our own.
|
Chapter
10: Plug-ins
-
How to Use a Plug-in
-
Popular Plug-Ins
- Dimensions
- Height and Width
- ScrollTop and ScrollLeft
- Offset
- Form
- Interface
-
Finding Plug-in Documentation
-
Developing a Plug-in
- Adding New Global Functions
- Adding Multiple Functions
- What's the Point?
- Adding jQuery Object Methods
- Object Method Context
- Method Chaining
- DOM Traversal Methods
- Adding New Shortcut Methods
- Maintaining Multiple Event Logs
- Adding a Selector Expression
- Creating an Easing Style
- Easing Function Parameters
- Multi-Part Easing Styles
- How to Be a Good Citizen
- Naming Conventions
- Use of the $ Alias
- Method Interfaces
- Documentation Style
-
Summary
|
|
Paperback 380 pages
Released: July 2007
ISBN: 1847192505
ISBN 13:
978-1-847192-50-9 |
|
|
|
|