Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-94] Enable setBadge for any tab (iPhone only)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:51:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.6.2
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:23:35.000+0000
Updated2011-04-17T01:51:58.000+0000

Description

Enable the ability to set the badge for any tab. The API is:


// get tabs array (or you can get by name)
var tabs = Titanium.UI.getTabs();

// set first tab to 1
tabs[0].setBadge(1);

// set second tab to 2
tabs[1].setBadge(2);

// set third tab to 3 
tabs[2].setBadge(3);

// set fourth tab to 4
tabs[3].setBadge(4);

Comments

No comments

JSON Source