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

Method getField

src/Form.js:67–69  ·  view source on GitHub ↗

* Returns field instance for given name. * @param {string} name Field name * @return {?Field} Field instance or null, if it does not exist

(name)

Source from the content-addressed store, hash-verified

65 * @return {?Field} Field instance or null, if it does not exist
66 */
67 getField (name) {
68 return this._fields.find(field => field.getName() === name) || null
69 }
70
71 /**
72 * Adds a field to the form.

Callers 6

addFieldMethod · 0.95
getFieldValueMethod · 0.95
setFieldValueMethod · 0.95
extractValuesMethod · 0.95
Form.jsFile · 0.80
getSettingMethod · 0.80

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected