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
Methods inherited from View
component_name
#initialize, #props
Instance Method Details
#firstSection(block) ⇒ Object
311
312
313
314
315
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 311
def firstSection(block)
json.sections [1] do
block.call page.table_section_builder
end
end
|
#sections(blocks) ⇒ Object
317
318
319
320
321
322
323
324
325
|
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 317
def sections(blocks)
json.sections do
blocks.each do |block|
json.child! do
block.call page.table_section_builder
end
end
end
end
|