MCPcopy Create free account
hub / github.com/cryptii/cryptii / setFieldValues

Method setFieldValues

src/Form.js:158–163  ·  view source on GitHub ↗

* Applies each field value in given map. * @param {object} namedValues Map of names pointing to field values * @throws {Error} If no field is assigned to given field name. * @return {Form} Fluent interface

(namedValues)

Source from the content-addressed store, hash-verified

156 * @return {Form} Fluent interface
157 */
158 setFieldValues (namedValues) {
159 for (const name in namedValues) {
160 this.setFieldValue(name, namedValues[name])
161 }
162 return this
163 }
164
165 /**
166 * Returns the field factory used upon field creation inside the form.

Callers 3

extractMethod · 0.95
Form.jsFile · 0.80
setSettingValuesMethod · 0.80

Calls 1

setFieldValueMethod · 0.95

Tested by

no test coverage detected