Method: Primer::Alpha::ActionMenu#with_show_button

Defined in:
app/components/primer/alpha/action_menu.rb

#with_show_button(**system_arguments, &block) ⇒ Object

Button to activate the menu.

Parameters:

  • system_arguments (Hash)

    The arguments accepted by <%= link_to_component(Primer::Alpha::Overlay) %>‘s `show_button` slot.

[View source]

259
260
261
262
263
# File 'app/components/primer/alpha/action_menu.rb', line 259

def with_show_button(**system_arguments, &block)
  @overlay.with_show_button(**system_arguments, id: "#{@menu_id}-button", controls: "#{@menu_id}-list") do |button|
    evaluate_block(button, &block)
  end
end