* Return an array containing an object for each form element. * Those objects are of the following structure `{ name: foo, value: '42' }`, where the `name` is the DOM element name, and the `value` is the localized numeric string. * * @param {null|string} forcedOutputFormat If
(forcedOutputFormat = null)
| 3268 | * @returns {Array} |
| 3269 | */ |
| 3270 | formArrayLocalized(forcedOutputFormat = null) { |
| 3271 | let outputFormatToUse; |
| 3272 | if (AutoNumericHelper.isNull(forcedOutputFormat)) { |
| 3273 | outputFormatToUse = this.settings.outputFormat; |
| 3274 | } else { |
| 3275 | outputFormatToUse = forcedOutputFormat; |
| 3276 | } |
| 3277 | |
| 3278 | return this.constructor._serializeLocalizedArray(this.form(), this.settings.serializeSpaces, outputFormatToUse); |
| 3279 | } |
| 3280 | |
| 3281 | /** |
| 3282 | * Return a JSON string containing an object representing the form input values. |
no test coverage detected