(showAll = false)
| 226 | } |
| 227 | |
| 228 | expand(showAll = false) { |
| 229 | DOM.removeAllChildren(this._node); |
| 230 | this._start = this._start + this._delta; |
| 231 | this._end = this._end - this._delta; |
| 232 | if (this._start >= this._end || showAll) { |
| 233 | this._node.innerText = this._string; |
| 234 | this._button.onclick = undefined; |
| 235 | return; |
| 236 | } |
| 237 | this._node.appendChild(DOM.text(this._string.substring(0, this._start))); |
| 238 | this._node.appendChild(this._button); |
| 239 | this._node.appendChild( |
| 240 | DOM.text(this._string.substring(this._end, this._string.length))); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | export class Chunked { |
no test coverage detected