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

Method setFirst

src/View/Field.js:32–42  ·  view source on GitHub ↗

* Sets wether this field is the first in a row. * @param {boolean} * @return {Field} Fluent interface

(first)

Source from the content-addressed store, hash-verified

30 * @return {Field} Fluent interface
31 */
32 setFirst (first) {
33 if (this._first !== first) {
34 this._first = first
35 if (first) {
36 this.getElement().classList.add('field--first')
37 } else {
38 this.getElement().classList.remove('field--first')
39 }
40 }
41 return this
42 }
43
44 /**
45 * Returns the current message, if any.

Callers 1

appendSubviewElementMethod · 0.80

Calls 1

getElementMethod · 0.80

Tested by

no test coverage detected