MCPcopy Create free account
hub / github.com/UI5/webcomponents / _getNextOptionIndex

Method _getNextOptionIndex

packages/main/src/Select.ts:930–932  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

928 }
929
930 _getNextOptionIndex() {
931 return this._selectedIndex === (this.options.length - 1) ? this._selectedIndex : (this._selectedIndex + 1);
932 }
933
934 _getPreviousOptionIndex() {
935 return this._selectedIndex === 0 ? this._selectedIndex : (this._selectedIndex - 1);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected