Class HtmlOptionItem
Represents a data object that could be rendered to <option> HTML element.
public class HtmlOptionItem
- Inheritance
-
objectHtmlOptionItem
- Extension Methods
Constructors
HtmlOptionItem()
public HtmlOptionItem()
Properties
Disabled
Gets or sets a value that indicates whether this HtmlOptionItem is disabled.
This property is typically rendered as a disabled="disabled" attribute in the <option> HTML element.
public bool Disabled { get; set; }
Property Value
- bool
Selected
Gets or sets a value that indicates whether this HtmlOptionItem is selected.
This property is typically rendered as a selected="selected" attribute in the <option> HTML element.
public bool Selected { get; set; }
Property Value
- bool
Text
Gets or sets a value that indicates the display text of this HtmlOptionItem.
This property is typically rendered as the inner HTML in the <option> HTML element.
public string Text { get; set; }
Property Value
- string
Value
Gets or sets a value that indicates the value of this HtmlOptionItem.
This property is typically rendered as a value="..." attribute in the <option> HTML element.
public string Value { get; set; }
Property Value
- string