Sha256: faf7c9171ef9821235ca400de1ff747521fb70ba4af436086dbd871534ce665a
Contents?: true
Size: 433 Bytes
Versions: 18
Compression:
Stored size: 433 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, opts = {}, &) content_tag(:span, title:, data: { tooltip: content_tag(:div, title, id: opts[:id], class: opts[:class] || "bottom", role: "tooltip", "aria-hidden": "true") }) do capture(&).html_safe end end end end
Version data entries
18 entries across 18 versions & 1 rubygems