{ "id": "91899", "key": "TIMOB-9143", "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": [ { "id": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-27T19:50:29.000+0000", "created": "2012-05-16T07:25:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-closed-3.2.0", "qe-testadded", "small" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-18T23:47:10.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "On BB10 devices swiping from the top of the screen will display a menu bar of action items it is used to control not often use actions that apply (crosscut) across the entire app. See\r\n\r\nhttps://developer.blackberry.com/cascades/reference/bb__Application.html#function-swipedown \r\n\r\nhttps://developer.blackberry.com/cascades/documentation/ui/navigation/menus.html \r\n\r\nLook at NativeWindowObject.cpp to see how to do ActionItems", "attachment": [], "flagged": false, "summary": "BlackBerry: Implement BB Application Menu (Crosscut Menu)", "creator": { "name": "tpetrenko", "key": "tpetrenko", "displayName": "Tatyana Petrenko", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "273224", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The following is the Titanium API for the Application Menu:\r\n{code}\r\n// Creates the menu with the three options\r\nvar appMenu = Ti.UI.BlackBerry.createApplicationMenu({\r\n\titems: [\r\n\t\t{title: 'one'},\r\n\t\t{title: 'two', icon: '/images/appcelerator_small.png'},\r\n\t\t{title: 'three'}\r\n\t]\r\n});\r\n\r\nappMenu.addEventListener('click', function(e) {\r\n\t// use the e.index to the the menu item index\r\n});\r\n\r\n// Add another item:\r\nappMenu.addItem({ title: 'meh', icon: 'some_image.png' });\r\n\r\n// Remove an item\r\nappMenu.removeItem( 1 ); // Index number\r\n\r\n// Remove all items:\r\nappMenu.removeAllItems();\r\n{code}\r\nNode: this creates a global menu for the entire app\r\n\r\nFor information on limitations, please look here: http://developer.blackberry.com/native/documentation/cascades/ui/navigation/menus.html", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T18:23:51.000+0000", "updated": "2013-09-27T18:26:49.000+0000" }, { "id": "273227", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/179", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T18:29:31.000+0000", "updated": "2013-09-27T18:29:31.000+0000" }, { "id": "283369", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "need more info", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T01:03:55.000+0000", "updated": "2013-12-10T01:03:55.000+0000" }, { "id": "283587", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Paste this code in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.open(); \r\n\r\n// Creates the menu with the three options\r\nvar appMenu = Ti.UI.BlackBerry.createApplicationMenu({\r\n items: [\r\n {title: 'one'},\r\n {title: 'two', icon: '/images/appcelerator_small.png'},\r\n {title: 'three'}\r\n ]\r\n});\r\n \r\nappMenu.addEventListener('click', function(e) {\r\n // use the e.index to the the menu item index\r\n});\r\n \r\n// Add another item:\r\nappMenu.addItem({ title: 'meh', icon: 'some_image.png' });\r\n{code}\r\nand run it. Once the app is running, slide your finger from the top of the phone down. As if you were dragging the status bar.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T19:09:00.000+0000", "updated": "2013-12-10T19:28:12.000+0000" }, { "id": "283595", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "A side note, you need at least one window open. For testing, place this on app.js at the very top:\n{code}\nvar win = Ti.UI.createWindow();\nwin.open();\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T19:29:16.000+0000", "updated": "2013-12-10T19:29:16.000+0000" }, { "id": "283597", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the above code with:\nAppcelerator Studio, build: 3.2.0.201312091648\nTitanium SDK, build: 3.2.0.v20131209192649\nCLI 3.2.0-cr\nAlloy 1.3.0-cr\n\nBlackBerry Z10 10.1.0.2019\n\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T19:34:25.000+0000", "updated": "2013-12-10T19:34:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }