[TIMOB-17] API - Titanium.UI.createActivityIndicator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:50:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.6.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:22:35.000+0000 |
Updated | 2011-04-17T01:50:07.000+0000 |
Description
Description
The purpose of this API is to create an activity indicator.
Example
var ind = Titanium.UI.createActivityIndicator();
ind.setType(Titanium.UI.ActivityIndicator.DETERMINANT);
ind.setMin(0);
ind.setMax(100);
ind.setPos(0);
ind.show();
// for indeterminant only
ind.hide();
Note: the activity indicator can be set on the toolbar or navbar just like a button
API Arguments
id : optional. the HTML element id where the activity indicator is placed
type : Titanium.UI.ActivityIndicator.INDETERMINANT or Titanium.UI.ActivityIndicator.DETERMINANT
message : optional. Add a message with the indicator (e.g., "loading...")
min : min value for determinant indicator
max : max value for determinant indicator
pos : current value for determinant indicator
API Methods
setMessage : same as message argument
setType : same as type argument
setLocation : same as location argument
setMin : same as min argument
setMax : same as max argument
setPos : change the value of a determinant indicator
show : show the indicator
hide : hide the indicator (for indeterminant indicators only)
No comments