Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19114] Ti.UI.Windows.AppBarToggleButton:click does not include "checked" like documented

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-07-07T16:40:44.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterFokke Zandbergen
AssigneeChristopher Williams
Created2015-06-30T13:32:25.000+0000
Updated2015-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();

Comments

  1. Ewan Harris 2015-09-03

    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

JSON Source