Module: StimulusPlumbers::Helpers::ActionListHelper

Included in:
StimulusPlumbers::Helpers
Defined in:
lib/stimulus_plumbers/helpers/action_list_helper.rb

Instance Method Summary collapse

Instance Method Details

#sp_action_list(**html_options, &block) ⇒ Object



6
7
8
# File 'lib/stimulus_plumbers/helpers/action_list_helper.rb', line 6

def sp_action_list(**html_options, &block)
  action_list_renderer.list(**html_options, &block)
end

#sp_action_list_item(content = nil, url: nil, external: false, active: false, **html_options, &block) ⇒ Object



14
15
16
# File 'lib/stimulus_plumbers/helpers/action_list_helper.rb', line 14

def sp_action_list_item(content = nil, url: nil, external: false, active: false, **html_options, &block)
  action_list_renderer.item(content, url: url, external: external, active: active, **html_options, &block)
end

#sp_action_list_section(title: nil, **html_options, &block) ⇒ Object



10
11
12
# File 'lib/stimulus_plumbers/helpers/action_list_helper.rb', line 10

def sp_action_list_section(title: nil, **html_options, &block)
  action_list_renderer.section(title: title, **html_options, &block)
end