Sha256: c584ce0612eab3020db68305aefaada04c99b78244a5d76090529e0ced6839ca

Contents?: true

Size: 1.16 KB

Versions: 28

Compression:

Stored size: 1.16 KB

Contents

module UiBibz::Helpers::Ui::Core::IconsHelper

  # Glyph Component
  #
  # + content+ (String || Hash) [Required]
  # +options+ (Hash)
  # +html_options+ (Hash)
  #
  # Glyph component with some exeption, it can be written
  # => glyph 'calendar', size: :xs
  # or
  # => glyph { name: 'calendar', size: :xs }
  def ui_glyph content, options = nil, html_options = nil, &block
    UiBibz::Ui::Core::Icons::Glyph.new(content, options, html_options, &block).render
  end

  # Glyph Group Component
  #
  # + content+ (String || Hash) [Required]
  # +options+ (Hash)
  # +html_options+ (Hash)
  #
  def ui_glyph_group content = nil, options = nil, html_options = nil, &block
    UiBibz::Ui::Core::Icons::GlyphGroup.new(content, options, html_options).tap(&block).render
  end

  # Glyph Changer
  #
  # +options+ (Hash)
  #
  def ui_glyph_or_glyph_group glyph_options, options = {}
    UiBibz::Utils::GlyphChanger.new(glyph_options, options).render
  end

  # Stars Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_star content = nil, options = nil, html_options = nil, &block
    UiBibz::Ui::Core::Icons::Star.new(content, options, html_options, &block).render
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ui_bibz-2.4.0 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.15 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.14 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.13 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.12 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.11 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.10 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.9 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.8 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.7 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.6 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.5 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.4 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.3 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.2 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.1 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.3.0 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.2.2 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.2.1 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-2.2.0 lib/ui_bibz/helpers/ui/core/icons_helper.rb