API Reference: HideLabelAttribute Class
The HideLabelAttribute
can be applied to content model properties. The attribute specifies that the property label should be hidden in the user interface of the back office application.
This can be used for property editors that do not require a label to be identified, such as nested content items, or a checkbox editor (which can have its own label next to the checkbox).
Usage
Decorate the content model property with the HideLabelAttribute
. The attribute does not require any parameters.
If the property label is hidden, other elements will be hidden as well, such as the tooltip icon created with the TooltipAttribute
.
Example
[Page]
public class ContentPage: IContentType
{
// Regular property label hidden in favor of the checkbox label.
[HideLabel]
[Checkbox(Label = "Hide in navigation")]
public bool HideInNavigation { get; set; }
}