は、次のような形式であり、私はアクセスform`sはExt.getCmpを(使用せずに、フォーム内のボタンを適用したい)と、ボタンのidを定義する:extjs4でExt.getCmp()を使わずにフォームボタンを有効/無効にする方法は?ここ
{xtype : 'form',
url : 'index.php/submitform',
trackResetOnLoad : true,
id : 'generalprofilebasicinformation'+ this.getId(),
listeners : {
//is fired when the form is dirty(field values are modified)
dirtychange : {
fn : function(sm) {
//Here Is my problem:
//How to access to Apply button or any other buttons defined inside the form???
var applyButton = this.Button;
applyButton.enable();}}},
buttons : [{
text : 'Apply',
formBind : true, // only
// enabled
// once the
// form is
// valid
disabled : true,} ]}
私が知る限り、ボタンはあなたがボタンを押したときにトリガーされ、これは私の場合ではありません。とにかく –