ParameterPrefix
Convert Prefix Example
2024/10/5 δΈε8:10:19
Strawberry
Strawberry
@inherits ControlComponent
<asp.TextBox @bind-convert-Text="this.date" format-Text="yyyy-MM-dd HH:mm:ss"></asp.TextBox>
@this.date.ToString()
<hr />
<asp.DropDownList @bind-convert-SelectedValue="this.enumValue">
<asp.ListItem>Chocolate</asp.ListItem>
<asp.ListItem>Coconut</asp.ListItem>
<asp.ListItem>Mint</asp.ListItem>
<asp.ListItem>Strawberry</asp.ListItem>
<asp.ListItem>Vanilla</asp.ListItem>
</asp.DropDownList>
@this.enumValue.ToString()
@code {
DateTime date = DateTime.Now;
ExampleEnum enumValue = ExampleEnum.Strawberry;
enum ExampleEnum
{
Chocolate,
Coconut,
Mint,
Strawberry,
Vanilla
}
}