Trying to add a title (tooltip) to items in the dropdown. I want the Description to be the title.
public class Acronym
{
public string Name {get;set;}
public string Description{get;set;}
public string Value {get;set;}
}
<RadzenDropDown TValue="string" @bind-Value=@value Data=@acronyms Style="width: 100%; max-width: 400px;" TextProperty="Name" ValueProperty="Value"/>
enchev
2
You can define Template with a DIV with title attribute.
This worked. Sharing for others. Thanks!
<Template>
<div title="@context.Description">@context.Name</div>
</Template>
Where can I find more info on Template?
enchev
5
It’s a standard Blazor Template/RenderFragment. You can find plenty of examples in our demos and you can check also the source code.