MCPcopy
hub / github.com/autoNumeric/autoNumeric / formReformat

Method formReformat

src/AutoNumeric.js:3345–3352  ·  view source on GitHub ↗

* Reformat all the autoNumeric-managed elements that are a child of the parent element of this DOM element * * @returns {AutoNumeric}

()

Source from the content-addressed store, hash-verified

3343 * @returns {AutoNumeric}
3344 */
3345 formReformat() { //FIXME test this
3346 const inputs = this.constructor._getChildANInputElement(this.form());
3347 inputs.forEach(input => {
3348 AutoNumeric.getAutoNumericElement(input).reformat();
3349 });
3350
3351 return this;
3352 }
3353
3354 /**
3355 * Convert the input values to numeric strings, submit the form, then reformat those back.

Callers 3

formSubmitLocalizedMethod · 0.95

Calls 4

formMethod · 0.95
reformatMethod · 0.80
getAutoNumericElementMethod · 0.80

Tested by

no test coverage detected