Hide

YetaWF Documentation

Display
Print

DayOfWeek Component

DayOfWeek (Display)

Displays the model formatted as a day of the week (Monday - Saturday, Sunday). If the model value is null, nothing is rendered.

Model Type: System.DayOfWeek?

[Caption("Day of the Week"), Description("Shows the day of the week")]
[UIHint("DayOfWeek"), ReadOnly]
public DayOfWeek? Day { get; set; }

DayOfWeek (Edit)

Allows selection of a day of the week (Monday - Saturday, Sunday) using a dropdown list. The model specifies the selected day. A "(select)" entry is added as the first entry with a value of null.

Model Type: System.DayOfWeek?

[Caption("Day of the Week"), Description("Select the day of the week")]
[UIHint("DayOfWeek")]
public DayOfWeek? Day { get; set; }