I have the following code to display dots at the end of a string if it is longer than a limit. But I also want to display a tooltip with the full text on hover. I am not sure how to implement that to a razor view element.
@(item.Data.Title.Length > 10 ? item.Data.Title.Substring(0, 10) + "..." : item.Data.Title)