Class: Glib::JsonUi::ViewBuilder::Panels::Table
- 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
164
165
166
167
168
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 164
def firstSection(block)
json.sections [1] do
block.call page.table_section_builder
end
end
|
#sections(blocks) ⇒ Object
170
171
172
173
174
175
176
177
178
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 170
def sections(blocks)
json.sections do
blocks.each do |block|
json.child! do
block.call page.table_section_builder
end
end
end
end
|