Articles in this section
Category / Section

HTML Tooltip for Syncfusion Blazor ListView Component

3 mins read

The HTML tooltip can be displayed for each item in the Syncfusion Blazor ListView component by using the
HtmlAttributes property and title attribute.

Refer to the following code sample:

@using Syncfusion.Blazor.Lists


<sflistview datasource="@Data">
   <listviewfieldsettings tvalue="DataModel" id="Id" text="Text" htmlattributes="HtmlAttribute"></listviewfieldsettings>
</sflistview>

@code {
   List<datamodel> Data = new List<datamodel>();

   protected override void OnInitialized()
   {
       base.OnInitialized();
       GetListData();
   }

   private void GetListData(){
       Data.Add(new DataModel { Text = "Hennessey Venom", Id = "list-01", 
           HtmlAttribute = new Dictionary<string, object="">() { 
               { "title", "Hennessey Venom" }
           }});
       Data.Add(new DataModel { Text = "Bugatti Chiron", Id = "list-02", 
           HtmlAttribute = new Dictionary<string, object="">() { 
               { "title", "Bugatti Chiron" }
           } });
...
...
...
   }

   public class DataModel
   {
       public string Id { get; set; }
       public string Text { get; set; }
       public Dictionary<string, object=""> HtmlAttribute { get; set; }
   }

}

Refer to the following link for sample.

https://blazorplayground.syncfusion.com/BjrKsirApfbaRtux</string,></string,></string,>

Conclusion
I hope you enjoyed learning about HTML Tooltip for Syncfusion Blazor ListView Component.

You can refer to our Blazor ListView feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Blazor ListView example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied