Код: Выделить всё
@context.ItemName
@foreach (var attribute in Attributes)
{
string name = attribute.AttributeName;
@if (!string.IsNullOrEmpty(context.GetAttributeValue(attribute.AttributeName)))
{
@context.GetAttributeValue(attribute.AttributeName)
}
}
public class ItemViewModel
{
public string ItemName { get; set; }
public Dictionary Attributes { get; set; }
public string GetAttributeValue(string attributeName)
{
if (Attributes.ContainsKey(attributeName))
return Attributes[attributeName];
return string.Empty;
}
}
Я хочу фильтровать элементы, но фильтр не работает, как решить эту проблему
Я использую Blazor.Bootstrap nuget
https: //docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-8
Подробнее здесь: https://stackoverflow.com/questions/793 ... rid-filter
Мобильная версия