[TIMOB-16159] MobileWeb: NavigationGroup buttons click event not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-03-04T19:16:01.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | Release 3.3.0 |
Components | MobileWeb |
Labels | NavigationGroup, event, qe-closed-3.3.0, qe-testadded |
Reporter | Hazem Khaled |
Assignee | Chris Barber |
Created | 2014-01-07T08:12:02.000+0000 |
Updated | 2014-05-08T09:32:31.000+0000 |
Description
Description:
Back button not working, also try to set rightNavButton then add event click or singleTab but also no thing happen
<Alloy>
<Window>
<NavigationGroup id="nav">
<Window id="webWin">
<RightNavButton>
<Button class="aboutBtn" onClick="openAbout" />
</RightNavButton>
<TableView id="list" />
</Window>
</NavigationGroup>
</Window>
</Alloy>
var openAbout = function() {
alert('working');
};
$.index.open();
Also not working if we tried in controller only
<Alloy>
<Window>
<NavigationGroup id="nav">
<Window id="webWin">
<TableView id="list" />
</Window>
</NavigationGroup>
</Window>
</Alloy>
var btn = Ti.UI.createButton({
title : 'aaa'
});
btn.addEventListener('click', function() {
alert('working');
});
$.webWin.rightNavButton = btn;
Hi Ingo, NavigationWindow is not supported in MobileWeb http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iOS.NavigationWindow I'm talking about this API http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.MobileWeb.NavigationGroup
Yes. I just edited the title to correct spelling and then afterwards realized that the component was wrong. NavigationGroup has been removed in 3.2.0. You should replace it with NavigationWindow. Does that work as expected?
The better way make it like NavigationWindow Thanks Ingo
Resolving this ticket as NavigationGroup has been replaced with NavigationWindow in 3.2.0 release. It is documented as part of the release notes here: http://docs.appcelerator.com/titanium/release-notes/?version=3.2.0.GA
Hi Ritu, I Know Titanium.UI.iPhone.NavigationGroup replaced with Titanium.UI.iOS.NavigationWindow but i'm talking about Titanium.UI.MobileWeb.NavigationGroup, it's still available in 3.2.0 and events not working, this what i mean. Thanks
Reopening this ticket based on reporter's latest comment.
Hazem, this used to work in 3.1.3?
Thanks Ingo & Ritu
Moving this ticket to engineering as we can reproduce this issue with the sample provided in the documentation. I reproduced this issue with Studio browser as well as Android emulator browser. http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.MobileWeb.NavigationGroup var win1 = Titanium.UI.createWindow(); var win2 = Titanium.UI.createWindow({ backgroundColor: 'red', title: 'Red Window' }); var win3 = Titanium.UI.createWindow({ backgroundColor: 'blue', title: 'Blue Window' }); var button = Titanium.UI.createButton({ title: 'Open Blue Window' }); button.addEventListener('click', function(){ nav.open(win3, {animated:true}); }); var nav = Titanium.UI.MobileWeb.createNavigationGroup({ window: win2 }); win2.add(button); win1.add(nav); win1.open();
Any updates on this one.. Updating to 3.2.x on MobileWeb seems impossible with this bug.
Dupe of TIMOB-16539.
Verified the fix on: OSX: 10.9.2 Xcode: 5.1.1 Studio - 3.3.0.201405011408 SDK -3.3.0.v20140507163312 acs-1.0.14 alloy-1.4.0-dev npm-1.3.2 titanium-3.3.0-dev titanium-code-processor-1.1.1 Browser: Chrome Version 34.0.1847.131 , Firefox 29.0