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