DojoMobileProgress widget

A Dojo mobile progress widget provides a graphic that suggests the movement of a second hand on a clock face. The graphic typically indicates that a background task is happening. The graphic is hidden by default.

Fields

updateIndicator
The number of milliseconds between one movement and the next.

Functions

showProgress
Display the graphic.
hideProgress
Hide the graphic.

Example

package client;

import dojo.mobile.widgets.DojoMobileButton;
import dojo.mobile.widgets.DojoMobileProgress;
import dojo.mobile.widgets.DojoMobileView;

handler MyOtherHandler type RUIhandler{
   initialUI =[ui], 
   onConstructionFunction = start, 
   cssFile = "css/EGLMobileCASProject.css", 
   title = "MyOtherHandler"}

   ui DojoMobileView{selected = true, id="myView", 
                     headerTitle = "View",
                     children = [
                        new DojoMobileButton{text= "go", onClick ::= go}, 
                        new DojoMobileBUtton{text = "stop", onClick ::= stop},
                        progress ]}; 

   progress DojoMobileProgress{updateInterval="1000"};

   function start()
        
   end
    
   function go(event Event in)
      progress.showProgress();
   end
    
   function stop(event Event in)
      progress.hideProgress();
   end
end
Use of this widget requires a statement like this:
import dojo.mobile.widgets.DojoMobileProgress;