[AC-5033] Titanium.UI.iOS.SplitWindow doesn't handle the "visible" event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-06-23T18:26:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Alberto Marcone |
Assignee | Shak Hossain |
Created | 2017-06-16T14:02:20.000+0000 |
Updated | 2017-06-23T18:26:20.000+0000 |
Description
In the documentation it says that
$.index.addEventListener('visible',function(e){
if (e.view == 'detail'){
e.button.title = "Master";
$.index.detailView.getWindow().leftNavButton = e.button;
} else if (e.view == 'master'){
$.index.detailView.getWindow().leftNavButton = null;
}
});
I tried doing this:
splitWin.addEventListener('visible', function(e) { });
but the event is not triggered.
The main reason to catch this event is that right now I can't handle the splitwindow on an iphone, without showing both the master and the detail window.
Hello, Please share a full reproducible code or us to test. Thanks.