Sha256: ea66ed482bfd770abccb2d9aff958ce78f21ca7c57c52e0547dd8fa4facb9702
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
module Foundation module Rails module Helpers class Tooltip < Foundation::Rails::Helpers::Element attr_accessor :title def initialize(attributes: {}, content: nil, title: title) @title = title super(attributes: attributes, content: content) end private def tag_type :span end def default_attributes { data: { tooltip: true }, class: ['has-tip'] } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foundation-rails-helpers-0.0.4 | lib/foundation/rails/helpers/tooltip.rb |
foundation-rails-helpers-0.0.3 | lib/foundation/rails/helpers/tooltip.rb |