Class: Glib::JsonUi::ViewBuilder::Panels::List
- Inherits:
-
View
show all
- Defined in:
- app/helpers/glib/json_ui/view_builder/panels.rb
Instance Attribute Summary
#json, #page
Instance Method Summary
collapse
Methods inherited from View
#analytics, #created
#initialize, #parse
Instance Method Details
#firstSection(block) ⇒ Object
98
99
100
101
102
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 98
def firstSection(block)
json.sections [1] do
block.call page.list_section_builder
end
end
|
#sections(blocks) ⇒ Object
104
105
106
107
108
109
110
111
112
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 104
def sections(blocks)
json.sections do
blocks.each do |block|
json.child! do
block.call page.list_section_builder
end
end
end
end
|