def preconfigure_record_window(c)
super
c.header = true
c.width = 600
c.draggable = false
c.title = "New Title"
end
在此代码中,我想更改表单标题。无论我在尝试什么,它都会显示默认标题Add
答案 0 :(得分:1)
您需要单独为添加和编辑操作定义它:
component :add_window do |c|
super(c)
c.title = "New title - add"
...
end
component :edit_window do |c|
super(c)
c.title = "New title - edit"
...
end