Sha256: 810659c8934dd4f009ecfe05b0f938b1beaa76be7640229cce75aae2dc712916
Contents?: true
Size: 763 Bytes
Versions: 2
Compression:
Stored size: 763 Bytes
Contents
require 'railsstrap/helpers/icon_helper' module Railsstrap module Helpers # Displays any of the 200 glyphicons available in Bootstrap. # @deprecated Use {#icon} instead. # @see http://glyph.smarticons.co/ # @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) if options.is_a?(Symbol || String) return icon options, library: :glyphicons end icon name, options.merge(library: :glyphicons) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railsstrap-4.0.0.beta3 | lib/railsstrap/helpers/glyphicon_helper.rb |
railsstrap-4.0.0.beta2 | lib/railsstrap/helpers/glyphicon_helper.rb |