一旦我单击基于Dojo模板的"自定义弹出"中的"提交"按钮,需要在父窗口中更改标签。
creating widget from parent.
new com.test.widget.testWidget({panel: this});
<label id="a">test</label>
--------------------------------
in the custom widget
show:function(){
// need to change the value of the parent label "a"
},
我确定我的解释正确...任何建议
您可以在父窗口中的标签中添加data-dojo-attach点,例如
<label id="a" data-dojo-attach-point="labelA">test</label>
然后在show函数中
show: function(){
this.panel.labelA.innerHTML = "hello world"
}