Module: SSHTunnel::UI::Helpers::Common::FormHelper::ClassMethods

Defined in:
lib/ssh-hull/ui/helpers/common/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#bind_buttons(buttons) ⇒ Object



17
18
19
20
21
# File 'lib/ssh-hull/ui/helpers/common/form_helper.rb', line 17

def bind_buttons(buttons)
  buttons.each do |f|
    bind_template_child "button_#{f}"
  end
end

#bind_form_fields(fields) ⇒ Object



24
25
26
27
28
29
# File 'lib/ssh-hull/ui/helpers/common/form_helper.rb', line 24

def bind_form_fields(fields)
  fields.each do |f|
    bind_template_child "label_#{f}"
    bind_template_child "input_#{f}"
  end
end

#bind_menu_entries(entries) ⇒ Object



10
11
12
13
14
# File 'lib/ssh-hull/ui/helpers/common/form_helper.rb', line 10

def bind_menu_entries(entries)
  entries.each do |f|
    bind_template_child "menu_#{f}"
  end
end