This example describes how to create a spinner control that includes up and down buttons. I. Define the controlThis exercise adds up and down image buttons to increment or decrement the value of the input box. The control otherwise remains unchanged. II. Define the classAll controllers remain the same for this class. This is an important point that reflects the flexibility provided by an MVC architecture. Because this exercise merely adds features to the view, there is no need to modify any of the existing controller methods. Only the view template and a few additional model defaults need to be changed, because the updated spinner widget must define more HTML elements to create the up and down images. The following steps show how to add the up and down controls.
Note the following items:
|
Contents
|

