Class: Glib::JsonUi::ViewBuilder::Panels::Tree
- Inherits:
-
View
- Object
- JsonUiElement
- View
- Glib::JsonUi::ViewBuilder::Panels::Tree
- Includes:
- Upload
- Defined in:
- app/helpers/glib/json_ui/view_builder/panels.rb
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
Methods inherited from View
Methods inherited from JsonUiElement
action, any, array, badgeable, bool, color, component_name, date, date_time, enum, float, hash, icon, #initialize, int, length, menu, panels_builder, #props, required, singleton_array, string, text, url, views
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#sections(blocks) ⇒ Object
1039 1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 1039 def sections(blocks) json.sections do blocks.each do |block| json.child! do block.call page.tree_section_builder end end end end |