{ "id": "63017", "key": "TIMOB-2385", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T20:11:46.000+0000", "created": "2011-04-15T03:18:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T21:13:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
The following usecase demonstrates that the removeTab() method\r\ncurrently does not work. In the code, I've created a button that\r\nlistens for a click event that attempts to remove tab2 using\r\nremoveTab(tab2), so any output can be observed using logcat. The\r\ntab is not removed. I've also tried removeTab outside of the\r\neventlistener, both before and after the tabgroup is opened, with\r\nthe same result.
\r\n\r\nvar tabGroup1 = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({\r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n title:'close tab',\r\n top:100,\r\n height:30,\r\n width:120\r\n});\r\n\r\nwin1.add(button1);\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nbutton1.addEventListener('click', function(e){\r\n tabGroup1.removeTab(tab2);\r\n});\r\n\r\ntabGroup1.addTab(tab1);\r\ntabGroup1.addTab(tab2);\r\n\r\ntabGroup1.open();\r\ntabGroup1.removeTab(tab2);
\r\n
are you sure this is low priority? it does not work for\nplatform.
The Android tab control does not support tab removal \nTabHost
Are there any updates or workarounds to this? This seems like a\npretty large bug to me..
I repeat the Android native control DOES NOT support the remove\nof tabs. Until they do or we build the entire control it's not\ngoing to be fixed.
\nThe workaround is to design your application such that you don't\nneed to remove tabs.
It would be nice if the documentation said \"iPhone only\" like a\nlot of other functions/properties...