diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui3.0.0/examples/widget/widget-extend_clean.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui3.0.0/examples/widget/widget-extend_clean.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,494 @@ + + + + + +Extending the base widget class + + + + + + + + + + + + + + + +

Extending the base widget class

+ +
+ This example shows how to extend the base Widget class to create a simple, re-usable spinner control. The Spinner class created in the example is not intended to be a fully featured spinner. It is used here as a concrete example, to convey some of the key concepts to keep in mind when extending the Widget class. + +
+ + + +
+ A basic spinner widget:
+

Click the buttons, or the arrow up/down and page up/down keys on your keyboard to change the spinner's value

+
+ + + + + + +