MCPcopy Create free account
hub / github.com/angular/components / scrollDown

Method scrollDown

src/material/tooltip/tooltip.spec.ts:1560–1568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1558 @ViewChild(CdkScrollable) scrollingContainer!: CdkScrollable;
1559
1560 scrollDown() {
1561 const scrollingContainerEl = this.scrollingContainer.getElementRef().nativeElement;
1562 scrollingContainerEl.scrollTop = 250;
1563
1564 // Emit a scroll event from the scrolling element in our component.
1565 // This event should be picked up by the scrollable directive and notify.
1566 // The notification should be picked up by the service.
1567 dispatchFakeEvent(scrollingContainerEl, 'scroll');
1568 }
1569}
1570
1571@Component({

Callers 1

tooltip.spec.tsFile · 0.45

Calls 2

dispatchFakeEventFunction · 0.85
getElementRefMethod · 0.65

Tested by

no test coverage detected