Extjs Button Problem:
Claim: I am a newbie for Extjs.
I am wor开发者_Python百科king on a project by using Extjs. but confused about for the button setting: Likevar result = action.result;
if (result.success) {
Ext.MessageBox.alert('Success',action.result.msg);
}
else {
Ext.MessageBox.alert('Failure',action.result.msg);
}
My question is for the result, what else properties or other function I could use for this 'result', except "success" and "failure"?
Thank you.
The ext api doesn't have any specific documentation on the result beyond a vague explanation of what it does, but here is the Action.result source code. You can look at how success is defined and go from there.
For other questions like this, you should look into the ext api. Sencha works hard to document ext well; so you should use that work to your advantage.
精彩评论