Skip to content

Autocomplete: Clearing selection using SelectedValueChanged #4587

Answered by David-Moreira
Hugo-Matias asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Hugo-Matias
Yes, that is how you call methods on the component, add
@ref="myAutocompleteRef" to the component.
and

@code{
private Autocomplete<MyTItem,MyTValue> myAutocompleteRef;

private Task Clear(){
return myAutocompleteRef.Clear();
}
}

Something along those lines, you might have to fix syntax.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hugo-Matias
Comment options

Answer selected by Hugo-Matias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants