Zen Mojo - Disable button on JQM Plugin
Hi All,
I am trying to disable a button on a JQM application.
I started the button as disabled according to this code: {type:'$button',caption: Button',key:'button',disabled:true}
However, I would like to enable or disable the button via JavaScript code . I have tried the following, but it don´t have the same behavior and style as the code above.
var view = zen('mainView');
view.disableItem('button',true,0);
I expect to get the same component behavior of {type:'$button',caption:'Standard Button',key:'button',disabled:true} when enabling or disabling the button through JavaScript code. I mean, the same style, color, behavior, etc.
I have also attached a basic test that I have done.
Can anybody help me please?
Thanks.