class Sidebar::ParamField::CheckBoxField

Public Instance Methods

canonicalize(value) click to toggle source
# File lib/sidebar.rb, line 95
def canonicalize(value)
  case value
  when "0"
    false
  else
    true
  end
end
input_html(sidebar) click to toggle source
# File lib/sidebar.rb, line 86
def input_html(sidebar)
  hidden_field_tag(input_name(sidebar),0)+
  check_box_tag(input_name(sidebar), 1, sidebar.config[key], options)
end
line_html(sidebar) click to toggle source
# File lib/sidebar.rb, line 91
def line_html(sidebar)
  input_html(sidebar) + ' ' + label_html(sidebar) + '<br >'
end