Sha256: 1a949a50f7e38de8be95e5a1c0cb3032b65e77809ea7e1d67ccc782bcbc992f0

Contents?: true

Size: 644 Bytes

Versions: 10

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

module BootstrapForm
  module Inputs
    module Select
      extend ActiveSupport::Concern
      include Base

      included do
        def select_with_bootstrap(method, choices=nil, options={}, html_options={}, &block)
          html_options = html_options.reverse_merge(control_class: "form-select")
          form_group_builder(method, options, html_options) do
            prepend_and_append_input(method, options) do
              select_without_bootstrap(method, choices, options, html_options, &block)
            end
          end
        end

        bootstrap_alias :select
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_form-5.4.0 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.3.2 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.3.1 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.3.0 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.2.3 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.2.2 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.2.1 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.2.0 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.1.0 lib/bootstrap_form/inputs/select.rb
bootstrap_form-5.0.0 lib/bootstrap_form/inputs/select.rb