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



542
543
544
545
546
547
548
549
550
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 542

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