{ "id": "92863", "key": "TIMOB-9408", "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": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-27T23:45:52.000+0000", "created": "2012-06-05T17:31:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "qe-port", "release-note", "support" ], "versions": [], "issuelinks": [ { "id": "17752", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "93124", "key": "TIMOB-9508", "fields": { "summary": "iOS: DocumentViewer should be able to automatically show just the \"Open in...\" option menu", "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": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-08T13:10:52.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": "Titanium.UI.iPad.DocumentViewer object (http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.iPad.DocumentViewer) it's available only for iPad.\r\n\r\nThis is the sample code available for iPad on the documentation:\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n //creating the window\r\n var win1 = Titanium.UI.createWindow({\r\n title:'win 1',\r\n backgroundColor:'#fff'\r\n });\r\n //add window - navigation bar\r\n var modalWin = Ti.UI.createWindow();\r\n //nav bar\r\n var navmodal = Ti.UI.iPhone.createNavigationGroup({\r\n window:modalWin\r\n });\r\n win1.add(navmodal);\r\n //button for the nav bar\r\n var b2t = Titanium.UI.createButton({\r\n title:'Launch'\r\n });\r\n modalWin.RightNavButton = b2t;\r\n //button for the window\r\n var b1t = Titanium.UI.createButton({\r\n title:'Launch',\r\n height:40,\r\n width:200,\r\n top:270\r\n });\r\n win1.add(b1t);\r\n //Setting up the documentviewer\r\n z = Ti.UI.iPad.createDocumentViewer({url:'Example.pdf'});\r\n //documentviewer with animation set on and a quicklook view poping up next to a view\r\n b1t.addEventListener('click', function(){z.show({animated:false,view:b2t});});\r\n //documentviewer with animation set off\r\n b2t.addEventListener('click', function(){z.show();});\r\n win1.open();\r\n{code}\r\n\r\nCustomer needs it also for iPhone; Ti.Ui.iOS.createDocumentViewer() should be available\r\n\r\nh2. Additional notes\r\nCustomer ticket: http://support-admin.appcelerator.com/display/APP-773698", "attachment": [], "flagged": false, "summary": "iOS: Titanium.UI.iPad.DocumentViewer should be available also for iPhone", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "199695", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Options:\r\n1: Simplest version: Strip the iPad check (since it works fine on iPhone).\r\n2: Simplest version, corrected: Strip the check, move to iOS namespace.\r\n3: Fastest version: Make simple module clone that doesn't check.\r\n4: Long term: There is a lot of overlap of documentViewer and Android intents. We might want to deprecate iPad.documentViewer, find a common ground, and implement that as a cross-platform solution.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T19:31:43.000+0000", "updated": "2012-06-21T19:31:43.000+0000" }, { "id": "199854", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3.TESTING INSTRUCTION\r\n//Please provide a sample.pdf to the test\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n //creating the window\r\n var win1 = Titanium.UI.createWindow({\r\n title:'win 1',\r\n backgroundColor:'#fff'\r\n });\r\n //add window - navigation bar\r\n var modalWin = Ti.UI.createWindow();\r\n //nav bar\r\n var navmodal = Ti.UI.iPhone.createNavigationGroup({\r\n window:modalWin\r\n });\r\n win1.add(navmodal);\r\n //button for the nav bar\r\n var b2t = Titanium.UI.createButton({\r\n title:'Launch'\r\n });\r\n modalWin.RightNavButton = b2t;\r\n //button for the window\r\n var b1t = Titanium.UI.createButton({\r\n title:'Launch',\r\n height:40,\r\n width:200,\r\n top:270\r\n });\r\n win1.add(b1t);\r\n //Setting up the documentviewer\r\n z = Ti.UI.iOS.createDocumentViewer({url:'sample.pdf'});\r\n //documentviewer with animation set on and a quicklook view poping up next to a view\r\n b1t.addEventListener('click', function(){z.show({animated:false,view:b2t});});\r\n //documentviewer with animation set off\r\n b2t.addEventListener('click', function(){z.show();});\r\n win1.open();\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T16:59:07.000+0000", "updated": "2012-06-22T16:59:35.000+0000" }, { "id": "199855", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[PULL PENDING|https://github.com/appcelerator/titanium_mobile/pull/2461]", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T17:00:18.000+0000", "updated": "2012-06-22T17:00:18.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }