Sha256: 51bb5c3a55f97b4654124bb76d5a7b3eb5954d4b5053d83e7d963df187001ffc
Contents?: true
Size: 575 Bytes
Versions: 6
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true 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.to_s end def item_wrapper_class "checkbox" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems