Skip to content

2.0.0beta - Completely refactored

Pre-release
Pre-release
Compare
Choose a tag to compare
@brainfoolong brainfoolong released this 26 Sep 18:30

This a pre-release / beta. A lot has changed.

  • complete refactoring
  • removed class FormDataJsonOptions. Use bare {} objects now as options
  • removed method FormDataJson.flattenJsonFormValues. Use flatList = true option in toJson
  • removed method FormDataJson.setInputValue. No direct replacement. Use fromJson if you need to set any input value
  • removed 3rd parameter formToJson/toJson callback function. It is now set into option filesCallback
  • renamed method formToJson to toJson
  • renamed method fillFormFromJsonValues to fromJson
  • renamed option unsetAllInputsOnFill to clearOthers
  • renamed option includeUncheckedAsNull to uncheckedValue and now represent the value that unchecked inputs should have in output
  • added option skipEmpty
  • added option fileReaderFunction
  • added option triggerChangeEvent
  • added unminified compiled file
  • optimized compiled files