API Reference: TooltipAttribute Class
The TooltipAttribute
can be applied to content model properties. The attribute specifies the tooltip help text to display for the property in the user interface of the back office application.
The tooltip will be displayed as an (i) icon inline with the property label on its right. The text will show in a tooltip after the content manager clicks/presses on the icon. The tooltip will disappear again when the user clicks/presses anywhere else.
You can also set a permanently visible help text with the HelpTextAttribute
.
Usage
Decorate the content model property with the TooltipAttribute
. Pass the tooltip text in the attribute constructor.
The tooltip icon is part of the property label, and will therefore not be displayed if the property label itself is hidden using the HideLabelAttribute
.
Example
[Page]
public class ContentPage: IContentType
{
[Tooltip("If checked, the page will not appear in the main navigation")]
public bool HideInNavgation { get; set; }
}