jQuery UI Examples - Widget Factory (Widget Factory)
Create stateful jQuery plugins using the same abstraction as all jQuery UI widgets.
For more details about the widget factory, see the API documentation Widget Factory。
Default functionality
This demo shows a simple custom widget created using the widget factory (jquery.ui.widget.js).
The three blocks are initialized in different ways. Click to change their background color. View the source and comments to understand how it works.
jQuery UI 部件库(Widget Factory) - 默认功能
改变颜色
改变颜色
改变颜色