MCPcopy
hub / github.com/autoNumeric/autoNumeric / setValue

Method setValue

src/AutoNumeric.js:2240–2244  ·  view source on GitHub ↗

* Set the given value directly as the DOM element value, without formatting it beforehand, and without checking its validity. * This also updates the `rawValue` with the given `newValue`, without checking it too ; if it's not formatted like a number recognized by Javascript, this *will* likely

(newValue, saveChangeToHistory = true)

Source from the content-addressed store, hash-verified

2238 * @returns {AutoNumeric}
2239 */
2240 setValue(newValue, saveChangeToHistory = true) {
2241 this._setElementAndRawValue(newValue, saveChangeToHistory);
2242
2243 return this;
2244 }
2245
2246 /**
2247 * Save the raw value inside the AutoNumeric object.

Callers 4

setMethod · 0.95
setUnformattedMethod · 0.95

Calls 1

Tested by

no test coverage detected