@namespace Connected.Components @inherits InputBase @typeparam T
@if (ShowProgressIndicator && IsLoading) { @if (ProgressIndicatorTemplate is not null) { @ProgressIndicatorTemplate } else {
} } @if(ProgressIndicatorInPopoverTemplate != null && IsLoading) { @ProgressIndicatorInPopoverTemplate } else if (_items != null && _items.Length != 0) { @for (var index = 0; index < _items.Length; index++) { var item = _items[index]; bool is_selected = index == _selectedListItemIndex; bool is_disabled = !_enabledItemIndices.Contains(index); @if (ItemTemplate == null) { @GetItemString(item) } else if (is_disabled && ItemDisabledTemplate is not null) { @ItemDisabledTemplate(item) } else if (is_selected) { @if (ItemSelectedTemplate is null) @ItemTemplate(item) else @ItemSelectedTemplate(item) } else { @ItemTemplate(item) } } @if (MoreItemsTemplate is not null && _itemsReturned > MaxItems) {
@MoreItemsTemplate
}
} else if (NoItemsTemplate is not null) {
@NoItemsTemplate
}