开发者

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:

Like

var 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜