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.
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
import dojo.mobile.widgets.DojoMobileProgress;