FastChar-ExtJs自动生成的关联组件linkfield怎么设置默认值啊?还有怎么动态给linkfield组件赋值啊啊?
{
name: "data.classId",
xtype: "linkfield",
fieldLabel: "所属班级",
columnWidth: 1,
entityCode: "FcClassesEntity",
entityId: "classId",
entityText: "className",
linkValue: {
classId: where['classId'],
className: where['^className']
}
}
回复:FastChar
好的!知道了!感谢回答
赋值默认值直接配置linkValue属性就可以了,你的代码里已经有配置了
动态设置linkfield值,如下代码: