Class: ExpressAdmin::MegaMenu
- Inherits:
-
ExpressTemplates::Components::Base
- Object
- ExpressTemplates::Components::Base
- ExpressAdmin::MegaMenu
- Defined in:
- app/components/express_admin/mega_menu.rb
Instance Method Summary collapse
Instance Method Details
#extra_menu ⇒ Object
23 24 25 |
# File 'app/components/express_admin/mega_menu.rb', line 23 def render(partial: 'shared/express_admin/express_admin_extra_menu') rescue nil end |
#menu_item(menu) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'app/components/express_admin/mega_menu.rb', line 27 def () li { a(href: helpers.instance_eval(.path)) { i(class: "icon icon-express_#{menu.title.gsub(/\s+/, '').underscore}") span .title } } end |
#menu_wrapper ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'app/components/express_admin/mega_menu.rb', line 36 def li(class: "has-sub-menu") { a(class: "sub-menu-expander", href: '#', onClick: 'return false;') { text_node 'Manage '.html_safe i(class: "ion-arrow-down-b") } div(class: 'sub-menu hidden') { ul(class: 'sub-menu-items') { li(class: 'title') { 'Modules' } yield } ul(class: 'sub-menu-items') { } } } end |