Sha256: 1ef7ac622cd5985de597bc301b4acd8b1bc664c3ddfbf1e591bbb2da1563b089
Contents?: true
Size: 773 Bytes
Versions: 8
Compression:
Stored size: 773 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems