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



554
555
556
557
558
559
560
561
562
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 554

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