Sha256: 0dc2b60270e43d03036d5d8513a1d2758a3900658a1f4cc8b11eeb910792d7aa

Contents?: true

Size: 670 Bytes

Versions: 7

Compression:

Stored size: 670 Bytes

Contents

require 'bh/helpers/icon_helper'

module Bh
  module Helpers
    # Displays any of the 200 glyphicons available in Bootstrap.
    # @deprecated Use {#icon} instead.
    # @see http://getbootstrap.com/components/#glyphicons
    # @return [String] the HTML to display a glyphicon.
    # @param [#to_s] name the name of the icon to display, with either dashes
    #   or underscores to separate multiple words.
    # @param [Hash] options the options to pass to the icon’s `<span>`.
    # @example Display the "zoom-in" glyphicon
    #   glyphicon :zoom_in
    def glyphicon(name = nil, options = {})
      icon name, options.merge(library: :glyphicons)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bh-1.3.6 lib/bh/helpers/glyphicon_helper.rb
bh-1.3.5 lib/bh/helpers/glyphicon_helper.rb
bh-1.3.4 lib/bh/helpers/glyphicon_helper.rb
bh-1.3.3 lib/bh/helpers/glyphicon_helper.rb
bh-1.3.1 lib/bh/helpers/glyphicon_helper.rb
bh-1.3.0 lib/bh/helpers/glyphicon_helper.rb
bh-1.2.0 lib/bh/helpers/glyphicon_helper.rb