Sha256: 37554798ec99508475a11396188b88439a8aed88aed7838a2a9d1b4f0ffc3d64

Contents?: true

Size: 772 Bytes

Versions: 27

Compression:

Stored size: 772 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

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.15 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.14 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.13 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.12 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.11 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.9 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.8 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.7 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.5 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.4 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.3 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.2 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.1 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.rc13 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.rc11 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.rc10 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.rc9 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.rc8 app/helpers/renalware/tooltip_helper.rb