Sha256: 1ff079c6369f68300e6dfca284baff05036d3bd1203a8b3e31310185ce1d922e

Contents?: true

Size: 357 Bytes

Versions: 26

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This helper includes some methods to help with the inclusion of tooltips
  # on the layout.
  module TooltipHelper
    def with_tooltip(title, &block)
      content_tag(:span, data: { tooltip: true, disable_hover: false, click_open: false },
                         title: title, &block)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
decidim-core-0.21.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.20.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.20.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.19.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.18.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.19.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.17.2 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.18.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.17.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.16.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.17.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.16.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.15.2 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.15.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.15.0 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.14.4 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.14.3 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.14.2 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.14.1 app/helpers/decidim/tooltip_helper.rb
decidim-core-0.13.1 app/helpers/decidim/tooltip_helper.rb