{ "id": "84162", "key": "TIMOB-6822", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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-06-07T20:40:17.000+0000", "created": "2011-12-21T12:51:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T20:40:17.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3.Feature Request\r\nImplement 'Click' event listener for \"Done\" button, which is within \"More\" tab.\r\n\r\nh6.allowUserCustomization flag should be set as true in order to edit tabs.\r\n\r\nh3.Repro sequence\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup({\r\n\tallowUserCustomization: true\r\n});\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\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 id:1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n// 2\r\n// create controls tab and root window\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 id:2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n// 3\r\n// create controls tab and root window\r\n//\r\nvar win3 = Titanium.UI.createWindow({ \r\n title:'Tab 3',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab3 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 3',\r\n window:win3,\r\n id:3\r\n});\r\n\r\nvar label3 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 3',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin3.add(label2);\r\n\r\n\r\n\r\n// 4\r\n// create controls tab and root window\r\n//\r\nvar win4 = Titanium.UI.createWindow({ \r\n title:'Tab 4',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab4 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 4',\r\n window:win4,\r\n id:4\r\n});\r\n\r\nvar label4 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 4',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin4.add(label4);\r\n\r\n\r\n\r\n\r\n// 5\r\n// create controls tab and root window\r\n//\r\nvar win5 = Titanium.UI.createWindow({ \r\n title:'Tab 5',\r\n backgroundColor:'#AAA'\r\n});\r\nvar tab5 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 5',\r\n window:win5,\r\n id:5\r\n});\r\n\r\nvar label5 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 5',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin5.add(label5);\r\n\r\n\r\n\r\n// 6\r\n// create controls tab and root window\r\n//\r\nvar win6 = Titanium.UI.createWindow({ \r\n title:'Tab 6',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab6 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 6',\r\n window:win6,\r\n id:6\r\n});\r\n\r\nvar label6 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 6',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin6.add(label6);\r\n\r\n//\r\n// add tabs - MANUALLY -\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\ntabGroup.addTab(tab6); \r\ntabGroup.addTab(tab4); \r\ntabGroup.addTab(tab5); \r\ntabGroup.addTab(tab3); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\nfunction getCurrentOrders(){\r\n\tfor( i = 0; i <7; i++) {\r\n\t\tTi.API.info('>>>>> ' + tabGroup.tabs[i].id);\r\n\t}\t\t\r\n}\r\n{code}\r\n\r\nh6.Associated HD ticket\r\nAPP-942318", "attachment": [ { "id": "24814", "filename": "TabGroup-Configure.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T12:51:40.000+0000", "size": 29879, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Feature request to add 'Click' event listener to \"Done\" button in tabGroup More tab", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.7.5, 1.8.0, 1.8.0.1\r\nPlatform OS: iOS\r\nPlatform OS Version: 4.3, 5.0", "comment": { "comments": [ { "id": "421212", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past 5 years.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T20:40:17.000+0000", "updated": "2017-06-07T20:40:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }