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

Method setText

src/View/Viewer/Text.js:31–41  ·  view source on GitHub ↗

* Sets text. * @param {string} text * @return {ViewerView} Fluent interface

(text)

Source from the content-addressed store, hash-verified

29 * @return {ViewerView} Fluent interface
30 */
31 setText (text) {
32 if (this._text !== text) {
33 this._text = text
34
35 if (this._$textarea !== null) {
36 this._$textarea.value = text
37 this.layoutTextarea()
38 }
39 }
40 return this
41 }
42
43 /**
44 * Returns wether input is disabled.

Callers 2

performViewMethod · 0.80
performViewMethod · 0.80

Calls 1

layoutTextareaMethod · 0.95

Tested by

no test coverage detected