Sha256: 2dcbd8e115fc454d2e33ed40c5f21b6186c42e8bfdfb471e488435b256e7e0fb
Contents?: true
Size: 711 Bytes
Versions: 18
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true module Renalware module TooltipHelper def tooltip(label:, 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:) 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
18 entries across 18 versions & 1 rubygems