Class Select
Generate a standard HTML5 <select> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Select : Tag<Select>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceAutofocus()
Activate the autofocus attribute on the <select> tag
Declaration
public Select Autofocus()
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Autofocus(String)
Set the autofocus attribute on the <select> tag
Declaration
public Select Autofocus(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in autofocus='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Disabled()
Activate the disabled attribute on the <select> tag
Declaration
public Select Disabled()
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Disabled(String)
Set the disabled attribute on the <select> tag
Declaration
public Select 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 |
---|---|
Select | a Select object to enable fluid command chaining |
Form(String)
Set the form attribute on the <select> tag
Declaration
public Select Form(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in form='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Multiple()
Activate the multiple attribute on the <select> tag
Declaration
public Select Multiple()
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Multiple(String)
Set the multiple attribute on the <select> tag
Declaration
public Select Multiple(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in multiple='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Name(String)
Set the name attribute on the <select> tag
Declaration
public Select Name(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in name='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Required()
Activate the required attribute on the <select> tag
Declaration
public Select Required()
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Required(String)
Set the required attribute on the <select> tag
Declaration
public Select Required(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in required='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |
Size(String)
Set the size attribute on the <select> tag
Declaration
public Select Size(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in size='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Select | a Select object to enable fluid command chaining |