Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
def preconfigure_record_window(c) super c.header = true c.width = 600 c.draggable = false c.title = "New Title" end
在这段代码中,我想更改表单标题。无论我在尝试什么,它都会显示默认标题Add
Add
您需要为添加和编辑操作单独定义它:
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