* Generate an array of localized strings from the ` ` elements, and pass it to the given callback. * Under the hood, the array is generated via a call to `formArrayLocalized()`. * * @param {function} callback * @param {null|string} forcedOutputFormat If set to something dif
(callback, forcedOutputFormat = null)
| 3459 | * @returns {AutoNumeric} |
| 3460 | */ |
| 3461 | formSubmitArrayLocalized(callback, forcedOutputFormat = null) { //FIXME test this |
| 3462 | if (AutoNumericHelper.isFunction(callback)) { |
| 3463 | callback(this.formArrayLocalized(forcedOutputFormat)); |
| 3464 | } else { |
| 3465 | AutoNumericHelper.throwError(`The given callback is not a function.`); |
| 3466 | } |
| 3467 | |
| 3468 | return this; |
| 3469 | } |
| 3470 | |
| 3471 | /** |
| 3472 | * Generate a JSON string with the numeric strings values from the `<input>` elements, and pass it to the given callback. |
no test coverage detected