Sha256: f97f7be516dbc60e31c61b46d3aabefb42b44e4dab99b6c6ca13a89b2f36d98d

Contents?: true

Size: 1.19 KB

Versions: 48

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true

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

48 entries across 48 versions & 1 rubygems

Version Path
ui_bibz-3.0.13 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.12 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.11 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.10 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.9 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.8 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.7 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.6 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.5 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.4 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.3 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.2 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.1 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta19 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta18 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta17 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta16 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta15 lib/ui_bibz/helpers/ui/core/icons_helper.rb
ui_bibz-3.0.0.beta14 lib/ui_bibz/helpers/ui/core/icons_helper.rb