Module: UiBibz::Helpers::Ui::Core::IconsHelper

Included in:
UiBibz::Helpers::Ui::CoreHelper
Defined in:
lib/ui_bibz/helpers/ui/core/icons_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_glyph(content, options = nil, html_options = nil, &block) ⇒ Object

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 }



14
15
16
# File 'lib/ui_bibz/helpers/ui/core/icons_helper.rb', line 14

def ui_glyph(content, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Icons::Glyph.new(content, options, html_options, &block).render
end

#ui_glyph_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Glyph Group Component

+ content+ (String || Hash) [Required] options (Hash) html_options (Hash)



24
25
26
# File 'lib/ui_bibz/helpers/ui/core/icons_helper.rb', line 24

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

#ui_glyph_or_glyph_group(glyph_options, options = {}) ⇒ Object

Glyph Changer

options (Hash)



32
33
34
# File 'lib/ui_bibz/helpers/ui/core/icons_helper.rb', line 32

def ui_glyph_or_glyph_group(glyph_options, options = {})
  UiBibz::Utils::GlyphChanger.new(glyph_options, options).render
end

#ui_star(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Stars Component

options (Hash) html_options (Hash)



40
41
42
# File 'lib/ui_bibz/helpers/ui/core/icons_helper.rb', line 40

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