0
def preconfigure_record_window(c)
  super  
  c.header = true
  c.width = 600  
  c.draggable = false
  c.title = "New Title"
end

在这段代码中,我想更改表单标题。无论我在尝试什么,它都会显示默认标题Add

4

1 回答 1

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
于 2014-01-17T02:14:40.147 回答