{ "id": "84455", "key": "TIMOB-6975", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-16T17:44:07.000+0000", "created": "2012-01-04T11:04:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "tbs-1.9.0", "training" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "39121", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124232", "key": "TIMOB-16094", "fields": { "summary": "iOS 7: Allow users to set negative spacer in Window NavButton", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "14426", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "61796", "key": "TIMOB-1164", "fields": { "summary": "ability to add multiple buttons to navbar", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:08:07.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": "We need to be able to support adding a toolbar as the left/right nav buttons in order to support multiple system-styled buttons in the nav bar:\r\n\r\n{code}\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\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\tstyle:Ti.UI.iPhone.SystemButtonStyle.PLAIN,\r\n\tsystemButton:Ti.UI.iPhone.SystemButton.DONE\r\n});\r\nvar b2 = Ti.UI.createButton({\r\n\tstyle:Ti.UI.iPhone.SystemButtonStyle.PLAIN,\r\n\tsystemButton:Ti.UI.iPhone.SystemButton.EDIT\r\n});\r\nvar toolbar = Ti.UI.iOS.createToolbar({\r\n\titems:[b1, b2],\r\n\twidth:'auto'\r\n});\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n leftNavButton:toolbar\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\nlabel1.addEventListener('click', function(e) {\r\n\tTi.API.info('Yup!')\r\n})\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// add tabs\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\ntabGroup.addTab(tab1);\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nSee TIMOB-1164 for a discussion about why this feature is necessary.\r\n\r\n*NOTE:* This ticket may be invalid based on the existence/functionality of `Ti.UI.Window.toolbar`. Need to check the source/tests to see what that property actually does and whether or not it's comprable.", "attachment": [], "flagged": false, "summary": "iOS: Allow toolbars in nav bar (currently always width 0)", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "177996", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "Would be better if Titanium supported adding an array of buttons to the (left|right)NavBar. Then you could also take advantage of the [native methods|http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationItem_Class/Reference/UINavigationItem.html] for this in iOS 5, with an iOS 4 fallback.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-04T12:28:03.000+0000", "updated": "2012-01-04T12:28:03.000+0000" }, { "id": "177997", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As stated on TIMOB-1164, we will not be adding iOS 5-specific features until minimum version configuration is allowed.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T12:34:31.000+0000", "updated": "2012-01-04T12:34:31.000+0000" }, { "id": "314426", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by TIMOB-16094\r\n\r\nExposed setting multiple buttons on navBar via leftNavButtons and rightNavButtons property.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-16T17:44:07.000+0000", "updated": "2014-07-16T17:44:07.000+0000" }, { "id": "413062", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:08:07.000+0000", "updated": "2017-03-16T21:08:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }