You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
593 B
26 lines
593 B
using Microsoft.Extensions.Localization;
|
|
using BlazorApp1.Models;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace BlazorApp1.Components
|
|
{
|
|
public partial class SearchBar
|
|
{
|
|
[Parameter]
|
|
public List<Item> ListeItems { get; set; }
|
|
|
|
public string SearchText { get; set; }
|
|
public void Search()
|
|
{
|
|
foreach (var item in ListeItems)
|
|
{
|
|
if (String.Equals(item.DisplayName, ListeItems) == true)
|
|
{
|
|
return;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|