[TIMOB-19114] Ti.UI.Windows.AppBarToggleButton:click does not include "checked" like documented
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-07T16:40:44.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 5.0.0 |
Components | Windows |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Christopher Williams |
Created | 2015-06-30T13:32:25.000+0000 |
Updated | 2015-09-03T21:33:03.000+0000 |
Description
The following example will show that the [Ti.UI.Windows.AppBarToggleButton:click](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Windows.AppBarToggleButton-event-click) event does not contain
e.checked
like documented. You'll have to use e.source.checked
as a workaround until this has been resolved.
var likeButton = Ti.UI.Windows.createAppBarToggleButton({
icon: Ti.UI.Windows.SystemIcon.LIKEDISLIKE
});
likeButton.addEventListener('click', function (e) {
console.log(JSON.stringify(e, null, 2));
});
win.add(Ti.UI.Windows.createCommandBar({
items: [likeButton]
}));
win.open();
Verified using: Windows 8.1 Appc CLI Core: 5.0.0-33 Appc CLI NPM: 4.2.0-1 Titanium SDK: 5.0.0.v20150902095518 Nokia Lumia 930 8.1 e.checked now shows a true/false value on click Closing ticket