Demo: dijit/Declaration Extensions

The following demonstrates defining a custom button widget, extending that widget with a new widget, and then creating an instance of that new widget. Take a look at the source code to see how it works.