开发者

Extjs Button Problem:

开发者 https://www.devze.com 2023-02-27 08:18 出处:网络
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:

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

精彩评论

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