class ExtCheckbox

Public Class Methods

new(config, parent) click to toggle source
Calls superclass method ExtNode::new
# File lib/extclasses/checkbox.rb, line 11
def initialize(config, parent)
  @default_config = {
    :fieldLabel => "<b></b>",
    :labelAlign => "right",
    :boxLabelAlign => "after",
    :hideLabel => false,
    :cls => "checkbox"
  }

  super "checkboxfield", config, parent 
end

Public Instance Methods

to_extjs(at_dept = 0) click to toggle source
Calls superclass method ExtNode#to_extjs
# File lib/extclasses/checkbox.rb, line 23
def to_extjs(at_dept = 0)
  if self.find_parent("checkboxgroup")
    @config.merge! :hideLabel => true
  end 

  super at_dept
end