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
-
#ui_glyph(content, options = nil, html_options = nil, &block) ⇒ Object
Glyph Component.
-
#ui_glyph_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Glyph Group Component.
-
#ui_glyph_or_glyph_group(glyph_options, options = {}) ⇒ Object
Glyph Changer.
-
#ui_star(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Stars Component.
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, = nil, = nil, &block) UiBibz::Ui::Core::Icons::Glyph.new(content, , , &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, = nil, = nil, &block) UiBibz::Ui::Core::Icons::GlyphGroup.new(content, , ).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(, = {}) UiBibz::Utils::GlyphChanger.new(, ).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, = nil, = nil, &block) UiBibz::Ui::Core::Icons::Star.new(content, , , &block).render end |