Sha256: 626e4d193b63645b5cdeda947e1d01145bb675d4c495c0c1b45f39ac18708d3c

Contents?: true

Size: 540 Bytes

Versions: 39

Compression:

Stored size: 540 Bytes

Contents

module SimpleForm
  module Inputs
    class CollectionCheckBoxesInput < CollectionRadioButtonsInput
      protected

      # Checkbox components do not use the required html tag.
      # More info: https://github.com/plataformatec/simple_form/issues/340#issuecomment-2871956
      def has_required?
        false
      end

      def build_nested_boolean_style_item_tag(collection_builder)
        collection_builder.check_box + collection_builder.text
      end

      def item_wrapper_class
        "checkbox"
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 6 rubygems

Version Path
simple_form-3.5.0 lib/simple_form/inputs/collection_check_boxes_input.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.4.0 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.3.1 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.3.0 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.2.1 lib/simple_form/inputs/collection_check_boxes_input.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.2.0 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.1.1 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.0.4 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-2.1.3 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-2.1.2 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.0.3 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.1.0 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.1.0.rc2 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.1.0.rc1 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.0.2 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.0.1 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-2.1.1 lib/simple_form/inputs/collection_check_boxes_input.rb
simple_form-3.0.0 lib/simple_form/inputs/collection_check_boxes_input.rb