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

Method goto

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

455
456 /** Navigates to the given tree item in the tree. */
457 goto(e: PointerEvent, opts?: SelectOptions) {
458 const item = this._getItem(e);
459 if (!item) return;
460
461 this.treeBehavior.goto(item, opts);
462 this.treeBehavior.toggleExpansion(item);
463 }
464
465 /** Expands the active item if possible, otherwise navigates to the first child. */
466 _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