Class: Glib::JsonUi::ViewBuilder::Panels::Tree

Inherits:
View show all
Includes:
Upload
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 View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

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

Instance Method Details

#sections(blocks) ⇒ Object



438
439
440
441
442
443
444
445
446
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 438

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