MCPcopy Create free account
hub / github.com/angular/angular / expand

Method expand

modules/benchmarks/src/expanding_rows/expanding_row.ts:292–302  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

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

Callers 10

handleSummaryClickMethod · 0.95
handleEnterPressMethod · 0.45
_toggleNodeMethod · 0.45
expandCurrentMethod · 0.45
navigateMatchedNodeMethod · 0.45
updateForestMethod · 0.45
expandParentsMethod · 0.45
updateMethod · 0.45
toggleNodeMethod · 0.45

Calls 4

setTimeoutFunction · 0.85
handleRowExpandMethod · 0.65
focusMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected