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

Method constructor

src/aria/private/behaviors/tree/tree.ts:96–106  ·  view source on GitHub ↗
(readonly inputs: TreeInputs<T, V>)

Source from the content-addressed store, hash-verified

94 private readonly _wrap = signal(true);
95
96 constructor(readonly inputs: TreeInputs<T, V>) {
97 this.focusBehavior = new TreeListFocus<T, V>(inputs);
98 this.selectionBehavior = new ListSelection<T, V>({...inputs, focusManager: this.focusBehavior});
99 this.typeaheadBehavior = new ListTypeahead<T>({...inputs, focusManager: this.focusBehavior});
100 this.expansionBehavior = new ListExpansion(inputs);
101 this.navigationBehavior = new ListNavigation<T>({
102 ...inputs,
103 focusManager: this.focusBehavior,
104 wrap: computed(() => this._wrap() && this.inputs.wrap()),
105 });
106 }
107
108 /** Returns the tab index for the given item. */
109 getItemTabindex(item: T) {

Callers

nothing calls this directly

Calls 1

computedFunction · 0.90

Tested by

no test coverage detected