【发布时间】:2018-12-07 22:23:41
【问题描述】:
在我的应用程序中,Ext.tree.Panel 和 Ext.form.Panel 这两个组件 当我点击树条目时,我需要将字段值设置为所选记录中的值。
当我点击入口时,会触发控制器中的事件处理函数:
...
showDataFields: function(view, record, item, index, event) {
//got a form with fields
var panel = view.up('mainpanel');
var formfield = panel.down('mainform');
//got the selected entry in the tree
sel = view.getSelectionModel().getSelection()[0];
console.log(sel)
//How to assign values from selected record to form fields?
}
...
我该怎么做? fiddle中的示例
第 37 行控制器文件中的showDataFields 方法
【问题讨论】:
标签: javascript extjs