Module: Decidim::TooltipHelper

Included in:
CardMCell
Defined in:
decidim-core/app/helpers/decidim/tooltip_helper.rb

Overview

This helper includes some methods to help with the inclusion of tooltips on the layout.

Instance Method Summary collapse

Instance Method Details

#with_tooltip(title, &block) ⇒ Object


7
8
9
10
# File 'decidim-core/app/helpers/decidim/tooltip_helper.rb', line 7

def with_tooltip(title, &block)
  (:span, data: { tooltip: true, disable_hover: false, keep_on_hover: true, click_open: false },
                     title: title, &block)
end