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( = nil) return if [:append].blank? @append ||= template.content_tag(:div, [: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( = nil) return if [:prepend].blank? @prepend ||= template.content_tag(:div, [:prepend], class: 'form-control-prepend') end |