Class: Panda::CMS::MenuComponent
- Inherits:
-
Panda::Core::Base
- Object
- Panda::Core::Base
- Panda::CMS::MenuComponent
- Defined in:
- app/components/panda/cms/menu_component.rb
Overview
Menu component for rendering navigational menus
Instance Method Summary collapse
Instance Method Details
#before_template ⇒ Object
37 38 39 |
# File 'app/components/panda/cms/menu_component.rb', line 37 def before_template end |
#view_template ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'app/components/panda/cms/menu_component.rb', line 20 def view_template return unless .each do || a(href: .resolved_link, class: .css_classes) { .text } if && .page render Panda::CMS::PageMenuComponent.new( page: .page, start_depth: 1, styles: , show_heading: false ) end end end |