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

Method renderLabel

src/View/Field.js:100–105  ·  view source on GitHub ↗

* Renders label. * @protected * @return {?HTMLElement}

()

Source from the content-addressed store, hash-verified

98 * @return {?HTMLElement}
99 */
100 renderLabel () {
101 return View.createElement('label', {
102 className: 'field__label',
103 htmlFor: this.getId()
104 }, this.getModel().getLabel())
105 }
106
107 /**
108 * Renders field.

Callers 1

renderMethod · 0.95

Calls 4

getIdMethod · 0.95
createElementMethod · 0.80
getLabelMethod · 0.80
getModelMethod · 0.45

Tested by

no test coverage detected