Module: CoreCardNavItemsHelper
- Defined in:
- app/helpers/core_card_nav_items_helper.rb
Overview
Help with nav items at the top of cards
Instance Method Summary collapse
Instance Method Details
#card_nav_items(obj, title: 'Card Actions', show_text: true, &block) ⇒ Object
This method is abstract.
Yield the main block for card nav items
9 10 11 12 13 14 |
# File 'app/helpers/core_card_nav_items_helper.rb', line 9 def card_nav_items(obj, title: 'Card Actions', show_text: true, &block) builder = CardNavBuilder.new(obj, current_ability, show_text: show_text, view_context: self) content_tag(:div, class: 'btn-group', role: :group, aria: { label: title }) do capture builder, &block end end |