Module: Components::InputGroup

Defined in:
lib/components/input_group.rb

Instance Method Summary collapse

Instance Method Details

#append(_wrapper_options = nil) ⇒ Object



11
12
13
14
15
# File 'lib/components/input_group.rb', line 11

def append(_wrapper_options = nil)
  return if options[:append].blank?

  @append ||= template.(:div, options[:append], class: 'form-control-append')
end

#prepend(_wrapper_options = nil) ⇒ Object



5
6
7
8
9
# File 'lib/components/input_group.rb', line 5

def prepend(_wrapper_options = nil)
  return if options[:prepend].blank?

  @prepend ||= template.(:div, options[:prepend], class: 'form-control-prepend')
end