* Expands this row. This will notify the host so that it can collapse * previously expanded row. This function also emits onToggle @Output event * to the user code.
()
| 290 | * to the user code. |
| 291 | */ |
| 292 | expand(): void { |
| 293 | this.isExpanded = true; |
| 294 | this.expandingRowHost.handleRowExpand(this); |
| 295 | |
| 296 | // setTimeout here makes sure we scroll this row into view after animation. |
| 297 | setTimeout(() => { |
| 298 | this.expandingRowMainElement.nativeElement.focus(); |
| 299 | }); |
| 300 | |
| 301 | this.onToggle.emit({rowId: this.rowId, isExpand: true}); |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Collapses this row. Setting isExpanded to false will make sure we hide |
no test coverage detected