Module: Decidim::ContextualHelpHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/decidim/contextual_help_helper.rb

Overview

Helper to print layout elements for the different help elements available on the pages.

Instance Method Summary collapse

Instance Method Details

#floating_help(id, &block) ⇒ Object



6
7
8
# File 'app/helpers/decidim/contextual_help_helper.rb', line 6

def floating_help(id, &block)
  render partial: "decidim/shared/floating_help", locals: { content: capture(&block), id: id }
end