Module: GlyphExtension

Included in:
UiBibz::Ui::Core::Component, UiBibz::Ui::Core::Forms::Buttons::Button
Defined in:
lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb

Instance Method Summary collapse

Instance Method Details

#glyph_and_content_html(content_html = nil) ⇒ Object

Render glyph and content html



5
6
7
8
9
10
11
# File 'lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb', line 5

def glyph_and_content_html(content_html = nil)
  if options[:glyph]
    UiBibz::ViewObjects::GlyphComponentViewObject.new(options, content_html || content).render
  else
    content_html || content
  end
end