Sha256: 6dc4ba0ff2e9ee1c4980dcc862fb89381c01063a9249c4063ed74012ef1d8976

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

class NestedComponent < Netzke::Base
  js_property :layout, :fit

  def configuration
    super.tap do |c|
      c[:items] = [:child.component]
    end
  end

  component :child,
    :class_name => "SimpleComponent",
    :layout => 'accordion',
    :items => [:grand_child_one.component, :grand_child_two.component],
    :components => {
      :grand_child_one => {:class_name => "SimpleComponent", :title => "Grand Child One"},
      :grand_child_two => {:class_name => "NestedComponent", :title => "Grand Child Two", :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/nested_component.rb
netzke-core-0.7.6 test/core_test_app/app/components/nested_component.rb
netzke-core-0.7.5 test/core_test_app/app/components/nested_component.rb
netzke-core-0.7.4 test/core_test_app/app/components/nested_component.rb
netzke-core-0.7.3 test/core_test_app/app/components/nested_component.rb
netzke-core-0.7.2 test/core_test_app/app/components/nested_component.rb
netzke-core-0.7.1 test/rails_app/app/components/nested_component.rb
netzke-core-0.7.0 test/rails_app/app/components/nested_component.rb