我已经看到一个 grails 域类有这样的定义:
static formLayout =
[ title:"New Patient Patient",
layout: "custom",
autoHeight:true,
items:
[
[
layout: 'column',
labelWidth: 135,
items:
[[
columnWidth: 0.5,
layout: 'form',
items:["patientNo", "dob","surName"]
],[
columnWidth: 0.5,
layout: 'form',
items:["responsibleDoctor","givenName","sex.value"]
]]
],
...
]
我想知道的是如何从 extjs 文件或控制器文件中使用/调用它,使其显示为表单。