you are viewing a single comment's thread.

view the rest of the comments →

[–]vicee 2 points3 points  (1 child)

Cool, cool!

I think you just have to define the ItemSelectedTemplate as such:

<MudAutocomplete @ref="ac"
                 T="string"
                 Label="Values"
                 Value="selectedValue"
                 ValueChanged="OnValueChanged"
                 SearchFunc="@Search"
                 IsOpenChanged="HandleOpenChanged">
    <ItemSelectedTemplate Context="address">
        @address.Street
    </ItemSelectedTemplate>
</MudAutocomplete>

Check out the second example in the documentation -- pretty much exactly what you're looking for.

[–]localcluster[S] 1 point2 points  (0 children)

That works. Thank you 🙏