Sha256: 09ca52f4f68ab1607cace0c54418f5b2afd02fcf1733e699b923b1851ef5a7c1

Contents?: true

Size: 477 Bytes

Versions: 69

Compression:

Stored size: 477 Bytes

Contents

require "simple_form"

module Plutonium
  module SimpleForm
    module InputGroupComponent
      def prepend(_wrapper_options = nil)
        template.content_tag(:span, options[:prepend], class: "input-group-text")
      end

      def append(_wrapper_options = nil)
        template.content_tag(:span, options[:append], class: "input-group-text")
      end
    end
  end
end
# Register with simple_form
SimpleForm.include_component(Plutonium::SimpleForm::InputGroupComponent)

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
plutonium-0.19.2 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.19.1 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.19.0 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.8 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.7 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.6 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.5 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.4 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.3 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.2 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.1 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.18.0 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.16.5 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.16.4 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.16.3 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.16.1 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.16.0 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.15.24 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.15.23 lib/plutonium/simple_form/input_group_component.rb
plutonium-0.15.22 lib/plutonium/simple_form/input_group_component.rb