Sha256: b3c7a842fd141fc0edc6b0f6a895d2ba0556c1c318f6d99bedb9c3433bf931d9
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
class SomeSimpleApp < Netzke::Basepack::SimpleApp def menu [:load_simple_accordion, :load_book_grid, :load_simple_tab_panel] + super end action :load_simple_accordion do |a| a.icon = :application_tile_vertical a.handler = :netzke_load_component_by_action a.component = :some_accordion a.text = "Some accordion" end action :load_book_grid do |a| a.icon = :table a.handler = :netzke_load_component_by_action a.component = :book_grid a.text = "Book grid" end action :load_simple_tab_panel do |a| a.icon = :table_multiple a.handler = :netzke_load_component_by_action a.component = :some_tab_panel a.text = "Some tab panel" end component :book_grid component :some_accordion component :some_tab_panel # Wrapping up original layout into a border-layout with the north panel being a fancy header def configure(c) super c.border = false c.items = [{ :region => :north, :height => 35, :html => %Q{ <div style="margin:10px; color:#333; text-align:center; font-family: Helvetica;"> Simple <span style="color:#B32D15">Netzke</span> app </div> }, },{ :region => :center, :layout => 'border', :items => config.items }] end end
Version data entries
5 entries across 5 versions & 1 rubygems