(name: string | DocumentFragment)
| 139 | } |
| 140 | |
| 141 | setName(name: string | DocumentFragment): this { |
| 142 | if (typeof name === "string") { |
| 143 | this.nameEl.textContent = name; |
| 144 | } else { |
| 145 | this.nameEl.replaceChildren(name); |
| 146 | } |
| 147 | this.infoEl.appendChild(this.nameEl); |
| 148 | return this; |
| 149 | } |
| 150 | |
| 151 | setDesc(desc: string): this { |
| 152 | this.descEl.textContent = desc; |
no outgoing calls
no test coverage detected