Check out a free preview of the full jQuery Plugins and jQuery UI course:
The "Widget Factory Introduction" Lesson is part of the full, jQuery Plugins and jQuery UI course featured in this preview video. Here's what you'd learn in this lesson:

The Widget Factory (TWF) is the underlying abstraction for all jQuery UI widgets and interactions (except “datepicker”, circa the recording). Example: Building a colorbox widget using TWF where defaults are specified in an “options” property and “_create” serves as the constructor. Note: TWF depends only on jQuery, but doesn’t have any dependencies on other modules within jQuery UI. TWF merges options with defaults, creates a widget instance for each selected element and allows you to ask for its state without a DOM query.

Get Unlimited Access Now