Module: SimpleFormExtension::Components::Icons

Defined in:
lib/simple_form_extension/components/icons.rb

Instance Method Summary collapse

Instance Method Details

#icon(wrapper_options) ⇒ Object



4
5
6
# File 'lib/simple_form_extension/components/icons.rb', line 4

def icon(wrapper_options)
  icon_class unless options[:icon].nil?
end

#icon_classObject



8
9
10
# File 'lib/simple_form_extension/components/icons.rb', line 8

def icon_class
  template.(:i, '', class: options[:icon])
end