Sha256: 93fd8da68394cb502af9f67355be7d6d30c83f5bf89d3737265d057486c92455
Contents?: true
Size: 803 Bytes
Versions: 124
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true module Renalware module TooltipHelper def tooltip(label:, content:) content_tag(:span, title: content, class: "has-tip", "aria-haspopup" => "true", data: { tooltip: "", options: "disable_for_touch:true" }) do label end end def tooltip_with_block(label:) content_tag(:span, title: label, class: "has-tip", "aria-haspopup" => "true", data: { tooltip: "", options: "disable_for_touch: true; hover_delay: 100;" }) do yield if block_given? end end end end
Version data entries
124 entries across 124 versions & 1 rubygems