Project: titanium
Issue TIMOB-19114: Ti.UI.Windows.AppBarToggleButton:click does not include "checked" like documented
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. {code:javascript} 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(); {code}
Story points: 3