Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8158] iOS: Ti.UI.iPad.DocumentViewer add a property to reference the 'done' button

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-09-01T09:21:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJunaid Younus
AssigneeUnknown
Created2012-03-21T10:58:13.000+0000
Updated2018-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

Comments

  1. Michael Hay 2014-12-12

    You can use the unload event ? http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.iOS.DocumentViewer-event-unload
  2. Hans Knöchel 2017-09-01

    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!
  3. Eric Merriman 2018-08-06

    Closing as invalid. If incorrect, please reopen.

JSON Source