* Sets wether this field is the first in a row. * @param {boolean} * @return {Field} Fluent interface
(first)
| 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. |
no test coverage detected