Chapter 9. Creating Widgets Using the Widget Factory

So far, we worked with the default components or widgets provided by the jQuery UI library. In this chapter, we will take a step forward and use the power of jQuery UI's widget factory to create our own widgets.

The widget factory of jQuery UI is the basic building block of all the components of jQuery UI. This means that if you create your own widgets using the widget factory as a base, you are doing so in a standardized manner similar to the way other native widgets have been written. This helps in maintaining consistency among all widgets. Another advantage is that the widget factory follows an object-oriented approach to create a widget.

We will use the widget factory in this chapter to create ...

Get Mastering jQuery UI 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.