Sha256: 073f7be7b733766cdb1b2d98b5f6bac14f11b655cae61855fe0db574b4b68f8d
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
module SimpleFormWithClientValidation 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
2 entries across 2 versions & 1 rubygems