src/MvcContrib.FluentHtml/Elements/RadioButtonBase.cs
/// <summary>
/// Add or remove the 'required' attribute. 
/// </summary>
/// <param name="value">Whether to add or remove the attribute.</param>
Add or remove the 'required' attribute.
Add or remove the ' required ' attribute .
public virtual T Required(bool value)
		{
			if (value)
			{
				Attr(HtmlAttribute.Required, HtmlAttribute.Required);
			}
			else
			{
				((IElement)this).RemoveAttr(HtmlAttribute.Required);
			}
			return (T)this;
		}
public virtual T Required ( bool value ) { if ( value ) { Attr ( HtmlAttribute . Required , HtmlAttribute . Required ) ; } else { ( ( IElement ) this ) . RemoveAttr ( HtmlAttribute . Required ) ; } return ( T ) this ; }
Add or remove the 'required' attribute.
Add or remove the ' required ' attribute .
value
bool
Whether to add or remove the attribute.
Whether to add or remove the attribute .