jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: JqxButton disabled state JqxButton disabled state #99899

    mikko
    Participant

    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.

Viewing 1 post (of 1 total)