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
#initialize, #props
Instance Method Details
#firstSection(block) ⇒ Object
145
146
147
148
149
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 145
def firstSection(block)
json.sections [1] do
block.call page.list_section_builder
end
end
|
#sections(blocks) ⇒ Object
151
152
153
154
155
156
157
158
159
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 151
def sections(blocks)
json.sections do
blocks.each do |block|
json.child! do
block.call page.list_section_builder
end
end
end
end
|