Main Content

jQuery UI Widget Factory

A talk by Adam J. Sontag

About the Talk

April 25, 2010 7:00 AM

Charlie and the Widget Factory

All the delicious widgets in jQuery UI are have a sweet, creamy center: The jQuery UI Widget Factory. By encapsulating a useful infrastructure for creating complex jQuery plugins into a base class, the widget factory can be your golden ticket to creating complex (or not-that-complex), reusable components for your web app/site.

We'll begin by exploring some common approaches to developing jQuery plugins, highlighting the strengths and weaknesses of various patterns, and identifying the shared characteristics involved in setting up robust, stateful widgets. Then, I'll reveal the awesome secret that's at the heart of the whole presentation: The authors of jQuery UI have already done just that, and their work is your gain. Armed with that tasty morsel, we'll conceive, gestate, and give birth to a widget in almost no time flat.

By the time our tour concludes, you'll have an understanding of when the widget factory is an appropriate solution to your problem, its potential drawbacks, and how to use it to create plugins that are lean, limber, and logical. If, of course, you are wise and listen to me, like the Oompa Loompa Doompety Dee.

Ratings and Recommendations

Avg. Rating

Average based
on 14 ratings

comments powered by Disqus