Class: Anchor::ActionMenuComponent
- Defined in:
- app/components/anchor/action_menu_component.rb
Constant Summary
Constants included from ViewHelper
Instance Method Summary collapse
-
#initialize(item_options: {}, **kwargs) ⇒ ActionMenuComponent
constructor
A new instance of ActionMenuComponent.
- #testid ⇒ Object
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(item_options: {}, **kwargs) ⇒ ActionMenuComponent
Returns a new instance of ActionMenuComponent.
14 15 16 17 18 |
# File 'app/components/anchor/action_menu_component.rb', line 14 def initialize(item_options: {}, **kwargs) @item_options = super(id: self.class.generate_id, **kwargs) end |
Instance Method Details
#testid ⇒ Object
20 21 22 |
# File 'app/components/anchor/action_menu_component.rb', line 20 def testid .dig(:data, :testid) || "action-menu" end |