Roqueform
    Preparing search index...

    Function createElementsValueAccessor

    • The opinionated element value accessor that applies following coercion rules.

      By default:

      Elements Value
      Single checkbox boolean See checkboxFormat.
      Multiple checkboxes An array of value attributes of checked checkboxes. See checkboxFormat.
      Radio buttons The value attribute of a radio button that is checked or null if no radio buttons are checked.
      Number input number, or null if empty.
      Range input number
      Date input The value attribute, or null if empty. See dateFormat.
      Time input A time string, or null if empty. See timeFormat.
      Image input A string value of the value attribute.
      File input File or null if no file selected, file inputs are read-only.
      Multi-file input An array of File.
      Other The value attribute, or null if element doesn't support it.

      null, undefined, NaN and non-finite numbers are coerced to an empty string and written to value attribute.

      Parameters

      Returns ElementsValueAccessor