Sha256: 06c80fab01d78ba01576e2d219ea5db8f109b1d8310517cb6785db01e3e67781

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

class DynamicTabPanel < Netzke::Base
  js_base_class "Ext.TabPanel"
  js_mixin

  action :add_tab

  def default_config
    super.tap do |c|
      c[:items] = [{
        :title => "Tab One"
      }]

      c[:bbar] = [:add_tab.action]
    end
  end

  component :tab_two, :class_name => "SimplePanel", :title => "Tab Two (dynamic)", :lazy_loading => true

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
netzke-core-0.7.7 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.6 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.5 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.4 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.3 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.2 test/core_test_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.1 test/rails_app/app/components/dynamic_tab_panel.rb
netzke-core-0.7.0 test/rails_app/app/components/dynamic_tab_panel.rb