We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear I uses multi blazoredtypeahead component in one page with one searchmethod function. i need a unique Id to category data for each component.
private async Task<IEnumerable> SearchList(string searchText) { return await Task.FromResult(newList.Where(x => x.categoryId=listId && x.Name.Contains(searchText)).ToList()); } how to pass ListId to this function?
The text was updated successfully, but these errors were encountered:
You can use a delegate as the SearchMethod and set the id per instance:
<BlazoredTypeahead SearchMethod="(searchString) => SearchList(searchString, 44)"
private async Task SearchList(string searchText, int listId) { return await Task.FromResult(newList.Where(x => x.categoryId=listId && x.Name.Contains(searchText)).ToList()); }
Sorry, something went wrong.
No branches or pull requests
Dear
I uses multi blazoredtypeahead component in one page with one searchmethod function.
i need a unique Id to category data for each component.
private async Task<IEnumerable> SearchList(string searchText)
{
return await Task.FromResult(newList.Where(x => x.categoryId=listId && x.Name.Contains(searchText)).ToList());
}
how to pass ListId to this function?
The text was updated successfully, but these errors were encountered: