2014-01-16 92 views
0
def preconfigure_record_window(c) 
    super 
    c.header = true 
    c.width = 600 
    c.draggable = false 
    c.title = "New Title" 
end 

在此代碼中,我想更改表單標題。不管我想它顯示的是默認的標題AddNetzke更改表單標題標題

回答

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 
+0

感謝,它的工作原理... – ejo