Class Optgroup
Generate a standard HTML5 <optgroup> tag
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Optgroup : Tag<Optgroup>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceDisabled()
Activate the disabled attribute on the <optgroup> tag
Declaration
public Optgroup Disabled()
Returns
Type | Description |
---|---|
Optgroup | a Optgroup object to enable fluid command chaining |
Disabled(String)
Set the disabled attribute on the <optgroup> tag
Declaration
public Optgroup Disabled(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in disabled='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Optgroup | a Optgroup object to enable fluid command chaining |
Label(String)
Set the label attribute on the <optgroup> tag
Declaration
public Optgroup Label(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in label='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Optgroup | a Optgroup object to enable fluid command chaining |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable