public void onFiltering(FilteringEventArgs args)
{
searchText = args.Text;
foreach (TestItem item in Options)
{
if (item.DisplayText.Contains(args.Text))
{
isSuggested = true;
}
else
{
isSuggested = false;
}
}
}
public void onInput(Microsoft.AspNetCore.Components.Web.KeyboardEventArgs e)
{
if(e.Code == "Enter")
{
// Call the NavigateToSearch method using searchText variable
}
} |
private async Task OnValueSelect( SelectEventArgs obj )
{
Selected = AutoComplete.Value ?? "Null";
var itemData = Newtonsoft.Json.JsonConvert.DeserializeObject<TestItem>(obj.ItemData != null ? obj.ItemData.ToString() : "");
var value = itemData.DisplayText;
//Call to NavigateToAsset using the searchText variable for query 2 and query 3
//var blah = await AutoComplete.GetDataByValue( AutoComplete.Value ) as TestItem;
StateHasChanged();
} |