MCPcopy
hub / github.com/autoNumeric/autoNumeric / formLocalized

Method formLocalized

src/AutoNumeric.js:3232–3241  ·  view source on GitHub ↗

* Return a string in standard URL-encoded notation with the form input values, with localized values. * The default output format can be overridden by passing the option as a parameter. * * @param {null|string} forcedOutputFormat If set to something different from `null`, then this is

(forcedOutputFormat = null)

Source from the content-addressed store, hash-verified

3230 * @returns {string}
3231 */
3232 formLocalized(forcedOutputFormat = null) {
3233 let outputFormatToUse;
3234 if (AutoNumericHelper.isNull(forcedOutputFormat)) {
3235 outputFormatToUse = this.settings.outputFormat;
3236 } else {
3237 outputFormatToUse = forcedOutputFormat;
3238 }
3239
3240 return this.constructor._serializeLocalized(this.form(), this.settings.serializeSpaces, outputFormatToUse);
3241 }
3242
3243 /**
3244 * Return an array containing an object for each form <input> element.

Callers 2

formSubmitLocalizedMethod · 0.95

Calls 3

formMethod · 0.95
isNullMethod · 0.80
_serializeLocalizedMethod · 0.80

Tested by

no test coverage detected