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

Method _goto

src/aria/private/toolbar/toolbar.ts:141–148  ·  view source on GitHub ↗

Navigates to the widget targeted by a pointer event.

(e: MouseEvent)

Source from the content-addressed store, hash-verified

139
140 /** Navigates to the widget targeted by a pointer event. */
141 private _goto(e: MouseEvent) {
142 const item = this.inputs.getItem(e.target as Element);
143
144 if (item) {
145 this.listBehavior.goto(item);
146 this.select();
147 }
148 }
149
150 select() {
151 const group = this.inputs.activeItem()?.group();

Callers 1

onClickMethod · 0.95

Calls 3

selectMethod · 0.95
getItemMethod · 0.80
gotoMethod · 0.45

Tested by

no test coverage detected