(node, string, limit = 200)
| 205 | |
| 206 | export class ExpandableText { |
| 207 | constructor(node, string, limit = 200) { |
| 208 | this._node = node; |
| 209 | this._string = string; |
| 210 | this._delta = limit / 2; |
| 211 | this._start = 0; |
| 212 | this._end = string.length; |
| 213 | this._button = this._createExpandButton(); |
| 214 | this.expand(); |
| 215 | } |
| 216 | |
| 217 | _createExpandButton() { |
| 218 | const button = DOM.element('button'); |
nothing calls this directly
no test coverage detected