src/MvcContrib.FluentHtml/Elements/Option.cs
/// <summary>
/// Set as disabled or enabled.
/// </summary>
/// <param name="value">Whether the option is disabled.</param>
Set as disabled or enabled.
Set as disabled or enabled .
public virtual Option Disabled(bool value)
		{
			if (value)
			{
				builder.MergeAttribute(HtmlAttribute.Disabled, HtmlAttribute.Disabled, true);
			}
			else
			{
				builder.Attributes.Remove(HtmlAttribute.Disabled);
			}
			return this;
		}
public virtual Option Disabled ( bool value ) { if ( value ) { builder . MergeAttribute ( HtmlAttribute . Disabled , HtmlAttribute . Disabled , true ) ; } else { builder . Attributes . Remove ( HtmlAttribute . Disabled ) ; } return this ; }
Set as disabled or enabled.
Set as disabled or enabled .
value
bool
Whether the option is disabled.
Whether the option is disabled .