Netzke更改表头标题

时间:2014-01-16 14:06:34

标签: extjs netzke

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

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

1 个答案:

答案 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