Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17] API - Titanium.UI.createActivityIndicator

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:50:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.6.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:22:35.000+0000
Updated2011-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)

Comments

No comments

JSON Source