{ "id": "80936", "key": "TIMOB-5420", "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": null, "resolutiondate": null, "created": "2011-10-03T17:05:59.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-02T17:31:47.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Please add the barColor property to Ti.UI.iPad.createSplitWindow. Currently bar is always gray.\r\n\r\n{code:title = app.js}\r\nvar tabgroup = Ti.UI.createTabGroup();\r\n\r\nSplitViewNav = {};\r\n\r\n// WINDOWS\r\nSplitViewNav.masterWindow = Ti.UI.createWindow({title:'Master',backgroundColor:'red', barColor:'blue'});\r\nSplitViewNav.detailWindow = Ti.UI.createWindow({title:'Detail',backgroundColor:'blue', barColor:'red'});\r\n\r\n// MASTER NAV GROUP\r\nSplitViewNav.masterNav = Ti.UI.iPhone.createNavigationGroup({\r\n\twindow:SplitViewNav.masterWindow\r\n});\r\n\r\n// DETAIL NAV GROUP\r\nSplitViewNav.detailNav = Ti.UI.iPhone.createNavigationGroup({\r\n\twindow:SplitViewNav.detailWindow\r\n\t\r\n});\r\n\r\n// SPLIT VIEW\r\nSplitViewNav.splitView = Titanium.UI.iPad.createSplitWindow({\r\n\tmasterView:SplitViewNav.masterNav,\r\n\tdetailView:SplitViewNav.detailNav,\r\n\tbarColor:'red'\r\n});\r\n\r\nSplitViewNav.open = function()\r\n{\r\n\tTi.API.info('in open for split view nav');\r\n\tSplitViewNav.splitView.open();\t\r\n};\r\n\r\nSplitViewNav.splitView.addEventListener('visible', function(e) {\r\n\r\n\tif (e.view == 'detail') {\r\n\t\te.button.title = \"Popover\";\r\n\t\tSplitViewNav.detailWindow.leftNavButton = e.button;\r\n\t}\r\n\telse if (e.view == 'master') {\r\n\t\tSplitViewNav.detailWindow.leftNavButton = null;\r\n\t}\r\n});\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\twindow:SplitViewNav.splitView\r\n});\r\n\r\ntabgroup.addTab(tab1);\r\ntabgroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Add splitWindow BarColor property", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPad device and simulator", "comment": { "comments": [ { "id": "167723", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why is the sample code putting a split view into a tabGroup?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T19:45:19.000+0000", "updated": "2011-10-03T19:45:19.000+0000" }, { "id": "167725", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That is what the customer is trying to do and what exposes the splitWindow bar color. The customer has acknowledged that it may be against Apple HIG, but there are other apps (release by apple) that do this.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T20:01:23.000+0000", "updated": "2011-10-03T20:01:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }