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

Method _getLastTriggeredIndex

src/cdk/listbox/listbox.ts:1051–1054  ·  view source on GitHub ↗

Get the index of the last triggered option.

()

Source from the content-addressed store, hash-verified

1049
1050 /** Get the index of the last triggered option. */
1051 private _getLastTriggeredIndex() {
1052 const index = this.options.toArray().indexOf(this._lastTriggered!);
1053 return index === -1 ? null : index;
1054 }
1055}
1056
1057/** Change event that is fired whenever the value of the listbox changes. */

Callers 2

_handleKeydownMethod · 0.95
_handleOptionClickedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected