[TIMOB-8158] iOS: Ti.UI.iPad.DocumentViewer add a property to reference the 'done' button
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-09-01T09:21:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Junaid Younus |
Assignee | Unknown |
Created | 2012-03-21T10:58:13.000+0000 |
Updated | 2018-08-06T17:37:05.000+0000 |
Description
There doesn't seem to be a way to reference the 'done' button of a Ti.UI.iPad.DocumentViewer object. In other words, the customer would like to be able to call the 'done' button programmatically, something like DocumentViewer.close();
Currently there is no way of doing this.
HD ticket: http://support-admin.appcelerator.com/display/APP-658343
You can use the unload event ? http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.iOS.DocumentViewer-event-unload
There is a method {{[hide|var win = Ti.UI.createWindow({ backgroundColor : 'white', title : 'sample' }); var lbl = Ti.UI.createLabel({ text : 'click to view doc viewer' }); lbl.addEventListener('click', function() { var docViewer = Ti.UI.iOS.createDocumentViewer(); docViewer.url = 'test.pdf'; docViewer.show(); }); win.add(lbl); win.open();]}} these day, resolving ticket!
Closing as invalid. If incorrect, please reopen.