Class: Glib::JsonUi::ViewBuilder::Panels::List

Inherits:
View show all
Defined in:
app/helpers/glib/json_ui/view_builder/panels.rb

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement

Instance Method Details

#firstSection(block) ⇒ Object



130
131
132
133
134
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 130

def firstSection(block)
  json.sections [1] do
    block.call page.list_section_builder
  end
end

#sections(blocks) ⇒ Object



136
137
138
139
140
141
142
143
144
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 136

def sections(blocks)
  json.sections do
    blocks.each do |block|
      json.child! do
        block.call page.list_section_builder
      end
    end
  end
end