module Ariadne::Forms::Dsl::InputMethods
def action_menu(**options, &block)
-
block
(Proc
) -- The block passed to `#render` when the <%= link_to_component(Ariadne::Alpha::ActionMenu) %> is rendered. This block is passed an instance of <%= link_to_component(Ariadne::Alpha::ActionMenu) %>, which can be used to add items, dividers, etc. -
options
(Hash
) -- The options accepted by the <%= link_to_component(Ariadne::Alpha::ActionMenu) %> component.
def action_menu(**options, &block) options = decorate_options(**options) add_input(ActionMenuInput.new(builder: builder, form: form, **options, &block)) end