Module: Adminterface::Extensions::Views::Components::DropdownMenu
- Defined in:
- lib/adminterface/extensions/views/components/dropdown_menu.rb
Instance Method Summary collapse
Instance Method Details
#item_divider ⇒ Object
6 7 8 9 10 |
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 6 def item_divider within @menu do li class: "dropdown-divider" end end |
#item_html ⇒ Object
12 13 14 15 16 |
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 12 def item_html within @menu do li { yield } end end |
#link_to(*args, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 18 def link_to(*args, &block) = args. [:class] = "dropdown-item #{[:class]}".squish super(*args, , &block) end |