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

Method goto

src/aria/private/tree/tree.ts:452–458  ·  view source on GitHub ↗

Navigates to the given tree item in the tree.

(e: PointerEvent, opts?: SelectOptions)

Source from the content-addressed store, hash-verified

450
451 /** Navigates to the given tree item in the tree. */
452 goto(e: PointerEvent, opts?: SelectOptions) {
453 const item = this._getItem(e);
454 if (!item) return;
455
456 this.treeBehavior.goto(item, opts);
457 this.treeBehavior.toggleExpansion(item);
458 }
459
460 /** Expands the active item if possible, otherwise navigates to the first child. */
461 _expandOrFirstChild(opts?: SelectOptions) {

Callers 13

TreePatternClass · 0.95
onCommitMethod · 0.45
onCommitMethod · 0.45
constructorMethod · 0.45
_groupNextMethod · 0.45
_groupPrevMethod · 0.45
_gotoMethod · 0.45
ListboxPatternClass · 0.45
TabListPatternClass · 0.45

Calls 2

_getItemMethod · 0.95
toggleExpansionMethod · 0.80

Tested by

no test coverage detected