class HtmlGrid::InputCheckbox

Constants

LABEL

Public Instance Methods

init() click to toggle source
Calls superclass method HtmlGrid::Input#init
# File lib/htmlgrid/inputcheckbox.rb, line 32
def init
  super
  if @value
    @attributes.store("checked", true)
  end
  @attributes.store("value", "1")
  @attributes["type"] = "checkbox"
end