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

Version Path
renalware-core-2.0.0.pre.beta11 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta10 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta9 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta8 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta7 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta6 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta5 app/helpers/renalware/tooltip_helper.rb
renalware-core-2.0.0.pre.beta4 app/helpers/renalware/tooltip_helper.rb