@page "/"
<MatAutocompleteList Items="@options" TItem="string" Label="Pick one"
ShowClearButton="true" Disabled="@ListDisabled"></MatAutocompleteList>
<MatButton OnClick="@ToggleDisabled" Label="Toggle Enabled" Raised="true" />
@code
{
bool ListDisabled;
private void ToggleDisabled()
{
ListDisabled = !ListDisabled;
}
string[] options = new[]
{
"One",
"Two",
"Three"
};
}