2 writes to _options
Aspire.Dashboard (2)
Components\Controls\ResourceTagEditor.razor.cs (2)
114
_options
= [];
137
_options
= options;
7 references to _options
Aspire.Dashboard (7)
Components\Controls\ResourceTagEditor.razor.cs (7)
141
_activeIndex = text is null ||
_options
.Count == 0 ? -1 : 0;
148
case "ArrowDown" when
_options
.Count > 0:
149
_activeIndex = (_activeIndex + 1) %
_options
.Count;
151
case "ArrowUp" when
_options
.Count > 0:
152
_activeIndex = _activeIndex <= 0 ?
_options
.Count - 1 : _activeIndex - 1;
155
if (_activeIndex >= 0 && _activeIndex <
_options
.Count)
157
AddTag(
_options
[_activeIndex].Tag);