class ExtPanel
Public Class Methods
new(options, parent)
click to toggle source
Calls superclass method
ExtNode::new
# File lib/extclasses/panel.rb, line 8 def initialize(options, parent) @default_config = { :padding => 5, # :height => 200, :title => 'Title By Default', :autoHeight => true } super("panel", options, parent) end
Public Instance Methods
to_extjs(at_deep = 0)
click to toggle source
Calls superclass method
ExtNode#to_extjs
# File lib/extclasses/panel.rb, line 18 def to_extjs(at_deep = 0) if find("toolbar", { :recursive => 1}) @config.merge! :tbar => find("toolbar").to_extjs(at_deep + 1) self.remove_childs "toolbar" end if find("paging", { :recursive => 1}) @config.merge! :bbar => find("paging").to_extjs(at_deep + 1) self.remove_childs "paging" end super at_deep end