From 66d6766dad15eb3fc429f92925d0a61f1900850c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 4 Aug 2011 19:47:08 +0200 Subject: [PATCH] Backport widget demo from master to get it up on jqueryui.com with the next 1.8.x release --- demos/index.html | 3 +- demos/widget/default.html | 189 ++++++++++++++++++++++++++++++++++++++ demos/widget/index.html | 18 ++++ 3 files changed, 209 insertions(+), 1 deletion(-) create mode 100644 demos/widget/default.html create mode 100644 demos/widget/index.html diff --git a/demos/index.html b/demos/index.html index 678c3330b..1eb0d8c74 100644 --- a/demos/index.html +++ b/demos/index.html @@ -287,7 +287,8 @@
Hide
Show
Utilities
-
Position
+
Position
+
Widget
About jQuery UI
Getting Started
Upgrade Guide
diff --git a/demos/widget/default.html b/demos/widget/default.html new file mode 100644 index 000000000..f45db8bbf --- /dev/null +++ b/demos/widget/default.html @@ -0,0 +1,189 @@ + + + + + jQuery UI Widget - Default functionality + + + + + + + + + + + + +
+ +
+
color me
+
color me
+
color me
+ + +
+ +
+ + + +
+

This demo shows a simple custom widget built using the widget factory (jquery.ui.widget.js).

+

The three boxes are initialized in different ways. Clicking them changes their background color. View source to see how it works, its heavily commented

+

For more details on the widget factory, visit the jQuery UI planning wiki.

+
+ + + diff --git a/demos/widget/index.html b/demos/widget/index.html new file mode 100644 index 000000000..1ecb4feea --- /dev/null +++ b/demos/widget/index.html @@ -0,0 +1,18 @@ + + + + + jQuery UI Widget Demo + + + + +
+

Examples

+ +
+ + +