UIZE JavaScript Framework

2010 NEWS 2010-07-07 - NEW EXAMPLE: Button

The new Button example provides a demonstration of the features of the Uize.Widget.Button widget class.

In the example, an instance of the Uize.Widget.Button widget class is instantiated and wired up. A log widget is used to log the instance events that occur for the button widget. Interacting with the widget will cause events to be fired, and those events will appear in the log. The log displays both the custom instance events that are fired using the button widget's fire method, as well as all Changed.* property change events that result from values of the button's various state properties being changed (so, the log can be used to watch for changes in the state of the button widget). Below the instance event log for the button is a set of links for testing aspects of the programmatic interface of the button widget. A "TOGGLE ENABLED" link toggles the value of the button's enabled state property. A "TOGGLE BUSY" link toggles the value of its busy state property. A "TOGGLE SELECTED" link toggles the value of its selected state property. Finally, a "CHANGE BUTTON TEXT" link changes the value of its text state property.

CHECK IT OUT