@namespace Oqtane.Modules.Controls @inherits ModuleControlBase @if (!string.IsNullOrEmpty(HelpText)) { @((MarkupString)_openLabel)@ChildContent@((MarkupString)_closeLabel) } else { @((MarkupString)_openLabel)@ChildContent@((MarkupString)_closeLabel) } @code { private string _openLabel = string.Empty; private string _closeLabel = ""; [Parameter] public RenderFragment ChildContent { get; set; } [Parameter] public string For { get; set; } // optional - the id of the associated input control for accessibility [Parameter] public string Class { get; set; } // optional - the class for the label ( ie. control-label ) [Parameter] public string HelpText { get; set; } // optional - tooltip for this label protected override void OnParametersSet() { _openLabel = "