如何在两个面板之间传递参数?

时间:2015-10-21 07:46:37

标签: javascript extjs extjs3

众所周知,我有一个A面板和B面板,当A中的某个值设置时,我必须将相同的值更新到B面板字段中。

A面板中的

fireEvent('RFtemperatureChange', measure);
活动结束后

。我在他们的父面板中设置了一个监听器,当它监听事件时,它总是会激活到B面板。

this.on('RFtemperatureChange', this.synchronizedWithReferTemprature, this);

synchronizedWithReferTemprature : function(measure){
    console.log('pre');
  //here to fireEvent the B panel
  },

在B面板中:

this.on('RFtemperatureInputChange', this.synchronizedWithReferTemprature, this);

0 个答案:

没有答案