Вот следующий вид и я хочу form`s доступа кнопки применить в форме без использования Ext.getCmp() и определения идентификатора для кнопки:Как включить/отключить кнопку формы без использования Ext.getCmp() в extjs4?
{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,} ]}
Насколько я знаю, кнопка будет запущена, когда вы НАЖМИТЕ кнопку, и это не мое дело. Спасибо в любом случае –