app/inputs/day_type_input.rb
# We assume that is input will be used for week_days column type which is a custom representation of a 7 bits string.
# the relevant input is a hidden field that will send a 7 char string
# each time a checkbox is (un)checked we update the value of the hidden field 
We assume that is input will be used for week_days column type which is a custom representation of a 7 bits string.
the relevant input is a hidden field that will send a 7 char string
each time a checkbox is (un)checked we update the value of the hidden field
We assume that is input will be used for week_days column type which is a custom representation of a 7 bits string . the relevant input is a hidden field that will send a 7 char string each time a checkbox is ( un ) checked we update the value of the hidden field
def checkbox_options(value)
    {
      name: nil,
      id: nil,
      'x-bind:checked': "isChecked(#{value})",
      '@change': "binaryValue ^= #{value}"
    }
  end
def checkbox_options ( value ) { name : nil , id : nil , 'x-bind:checked' : "isChecked(#{value})" , '@change' : "binaryValue ^= #{value}" } end
We assume that is input will be used for week_days column type which is a custom representation of a 7 bits string.
We assume that is input will be used for week_days column type which is a custom representation of a 7 bits string .
# We remove the name & the id of the checkbox because we do not want them to send data
value