Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Blazor Autocomplete Searchbar

$
0
0

I don't know where to put this thread sience there is no Forum dedicated to Blazor

Does anybody know where to start to make an Autocomplete searchbar with Blazor ?

Maybe use the html Datalist I don'k know

I looked to the documentation, buy I have no experience in making a search bar, I already started to understand a little bit about the event of the upkey

<input type="text" bind="@term" onkeyup="@search" />

@functions{
string term;


Concepto concepto = new Concepto();


private async Task search(UIKeyboardEventArgs e)
{
term += e.Key;
Console.WriteLine(term);

await http.GetJsonAsync<Concepto>("api/Conceptos/Search/" + term);

}
}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>