Parent

Methods

Netzke::Basepack::BorderLayoutPanel

Panel with border layout

Example configuration:

    :items => [
      {:title => "Item One", :class_name => "Basepack::Panel", :region => :center},
      {:title => "Item Two", :class_name => "Basepack::Panel", :region => :west, :width => 300, :split => true}
    ]

Public Instance Methods

items() click to toggle source
    # File lib/netzke/basepack/border_layout_panel.rb, line 11
11:       def items
12:         @border_layout_items ||= begin
13:           updated_items = super
14: 
15:           if config[:persistence]
16:             updated_items.each do |item|
17:               region = item[:region] || components[item[:component]][:region]
18:               item.merge!({
19:                 :width => state[:"#{region}_region_width"],
20:                 :height => state[:"#{region}_region_height"],
21:                 :collapsed => state[:"#{region}_region_collapsed"]
22:               })
23:             end
24:           end
25:           
26:           updated_items
27:         end
28:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.