AI OnAI Off
Use the this attribute, with Description set.
[Display(Name = "Title",
Description = "My title tooltip",
Order = 100,
GroupName = SystemTabNames.Content)]
public virtual XhtmlString Title { get; set; }
Tomas is correct, also I find personally tooltips on hover for description text to be not user friendly as users will not neccessary realise. If you add this CSS in to your client resources (https://world.episerver.com/documentation/developer-guides/CMS/client-resources/) CSS file
/* Set property descriptions to be visible */
.Sleek .dijitTabPaneWrapper .epi-form-container__section__row label[title]:after,
.Sleek .epi-createContent .epi-form-container__section__row > label[title]:after {
content: attr(title);
display: block;
font-size: 0.8em;
font-style: normal;
margin: 0.3em 0 0 0;
}
The descriptions will be shown on the title on the left of the property in the editor (for all properties editing view).
I need some description to be displayed when I hover on a property
public virtual XhtmlString Title { get; set; }
How can I do it?