In the below code disable=true doesn’t prevent click event, i.e. alert is run.
$(‘#jqxButton’).jqxButton({
theme: ‘energyblue’,
width: ’90’, height: ’25’,
textPosition:’center’
});
$(‘#jqxButton’).on(‘click’, function () {
alert(‘You clicked me!’)
});
$(‘#jqxButton’).jqxButton({disabled: true });
However, code without textPosition:’center’ works:
$(‘#jqxButton’).jqxButton({
theme: ‘energyblue’,
width: ’90’, height: ’25’
});
$(‘#jqxButton’).on(‘click’, function () {
alert(‘You clicked me!’)
});
$(‘#jqxButton’).jqxButton({disabled: true });
It is very frustrating that you have not documented this “feature” on disabled property in jqxButton’s API.
In fact, the disable property is not working correctly when textPosition is used.