jQuery UI widget library
The jQuery UI widget library (Widget Factory) is an extensible foundation on which all jQuery UI widgets are created. Using the Widget Factory to create plug-ins provides convenient state management, and also provides convenience for some common tasks, such as exposing plug-in methods, changing options after instantiation, etc.
Extend the widget through the widget factory
Widget method call
Why use Widget Factory
How to use Widget Factory