MCPcopy Index your code
hub / github.com/angular/components / scrollOptionIntoView

Function scrollOptionIntoView

src/material/timepicker/timepicker.ts:525–527  ·  view source on GitHub ↗

* Scrolls an option into view. * @param option Option to be scrolled into view. * @param position Position to which to align the option relative to the scrollable container.

(option: MatOption, position: ScrollLogicalPosition)

Source from the content-addressed store, hash-verified

523 * @param position Position to which to align the option relative to the scrollable container.
524 */
525function scrollOptionIntoView(option: MatOption, position: ScrollLogicalPosition) {
526 option._getHostElement().scrollIntoView({block: position, inline: position});
527}

Callers 2

_syncSelectedStateMethod · 0.85
_handleKeydownMethod · 0.85

Calls 1

_getHostElementMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…