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
component_name
#initialize, #props
Instance Method Details
#firstSection(block) ⇒ Object
292
293
294
295
296
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 292
def firstSection(block)
json.sections [1] do
block.call page.list_section_builder
end
end
|
#sections(blocks) ⇒ Object
298
299
300
301
302
303
304
305
306
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 298
def sections(blocks)
json.sections do
blocks.each do |block|
json.child! do
block.call page.list_section_builder
end
end
end
end
|