Hi,
I need to know how the check-state of the jqxCheckBox was changed. I looked up from the API and found the sample code below.
var type = event.args.type; // keyboard, mouse or null depending on how the value was changed.});
I tired it with the provided demo here. I added a jqxButton for changing check-state of the jqxCheckBox with its API. However, the event.args.type is always null either when the checkbox is clicked directly or when the jqxButton is clicked.
Here is the modified demo code.
<div id='jqxCheckBox'>Entertainment</div>
<input type="button" value="Click me" id='jqxButton' />'
$(“#jqxCheckBox”).jqxCheckBox({
width: ‘300px’,
height: 25,
theme: ‘energyblue’
});
$(‘#jqxCheckBox’).on(‘change’, function (event) {
var type = event.args.type;
alert(“The state has been changed, change type is: ” + type);
});
$(‘#jqxButton’).jqxButton({
theme: ‘energyblue’
});
$(‘#jqxButton’).on(‘click’, function () {
$(‘#jqxCheckBox’).jqxCheckBox(‘uncheck’);
});`
Please help, did I miss anything?
Thanks