class ExtRadio

Public Class Methods

new(config, parent) click to toggle source
Calls superclass method ExtNode::new
# File lib/extclasses/radio.rb, line 9
def initialize(config, parent)
  @default_config = {
    :labelWidth => 100,
    :hideLabel => true
  }
  
  super "radiofield", config, parent 
end

Public Instance Methods

to_extjs(at_deep = 0) click to toggle source
Calls superclass method ExtNode#to_extjs
# File lib/extclasses/radio.rb, line 18
def to_extjs(at_deep = 0)
  if parent.xtype == "radiogroup" 
    name = parent.config[:name]
    config[:name] = name
  end
  super at_deep
end