[TIMOB-94] Enable setBadge for any tab (iPhone only)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:51:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.6.2 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:23:35.000+0000 |
Updated | 2011-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);
No comments