Chapter 8. Using the widget factory to build stateful plugins

This chapter covers

  • Creating widgets with the widget factory
  • The benefits of using the widget factory
  • Accessing a widget’s data and inner workings

Throughout this book, you’ve looked at the widgets jQuery UI provides and all the things you can do with them. Although the jQuery UI widgets let you do a lot, the widgets don’t cover all the UI controls you need to build modern web applications. Don’t worry—the most powerful part of jQuery isn’t its widgets, it’s the mechanism that all its widgets are built with: the widget factory.

The widget factory evolved from the early days of jQuery UI. Recall that the jQuery UI project started as a collection of popular plugins from a variety ...

Get jQuery UI in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.