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

Method goto

src/aria/private/tree/tree.ts:453–459  ·  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

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

Callers 14

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