Method: CoreDropdownHelper#dropdown_menu
- Defined in:
- app/helpers/core_dropdown_helper.rb
#dropdown_menu(icon_size: 24, &block) ⇒ Object
This method is abstract.
Drop down menu for actions
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/core_dropdown_helper.rb', line 8 def (icon_size: 24, &block) content_tag(:div, class: 'dropdown') do concat(content_tag(:button, class: 'btn p-0 dropdown-toggle hide-arrow', type: :button, data: { 'bs-toggle': :dropdown }) do concat(svg_icon(:more_menu, size: icon_size)) end) concat(content_tag(:div, class: 'dropdown-menu') { yield block }) end end |