DateField
Since 0.1.0-alpha.20IzzyBlazor.DateField<TValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.20 assembly
and its doc comments.
Properties (20)
ReadOnlybool = falseMakes the field read-only: it can be focused, and it still posts.
TypeDateFieldType? (computed)A date, or a date and time, a month or a year. Defaults to a date for DateOnly and for a property with [DataType(DataType.Date)]; otherwise a date and time. A DateOnly can't take a time. A month is the 1st of it, in a DateOnly or DateTime; a year is an int.
MinTValue (computed)The earliest value. Defaults to [Range]'s minimum; the type's default value means none.
MaxTValue (computed)The latest value. Defaults to [Range]'s maximum; the type's default value means none.
StepTimeSpan?The step between allowed values: whole days for a date (1 day unless set), seconds for a date and time (1 minute unless set). A step under a minute shows seconds; otherwise the time shows to the minute, and seconds in the bound value are dropped when it posts.
TimeZoneTimeZoneInfo? (computed)The zone the entered time is in, for a DateTime or DateTimeOffset. Defaults to UTC. A DateTimeOffset comes back with this zone's offset; a DateTime comes back in UTC (with Kind Unspecified after a static post, which Blazor's form binding reads). Use a zone with an IANA or Windows id, which the browser's script can look up for static posts.
StartAddonRenderFragment?Content attached before the control, outside its border. See StartAddon.
EndAddonRenderFragment?Content attached after the control, outside its border, such as the time zone.
UseNativebool = falseKeeps the browser's calendar in place of the library's. DateDisabled is then checked only on the server, as the browser's calendar can't show it.
Clearablebool = falseA button in the field that empties it, for a nullable value, there while it holds something. Off by default.
ChooseLabelstring?The name of the calendar's button, in place of "Choose date" and "Change date" with the date.
FirstDayOfWeekDayOfWeek? (computed)The first column. Defaults to the culture's first day of the week.
CultureCultureInfo? (computed)The culture for the month and day names, the first day and the week numbers. Defaults to the current culture.
ShowWeekNumbersbool = falseAdds a first column with the week of the year, counted as the culture counts them.
ShowAdjacentDaysbool = trueWhether to show the days of the months before and after, muted, in the first and last weeks. Defaults to true.
DateDisabledFunc<DateOnly, bool>?Whether a day can't be chosen. Checked on the server too, so it stops OnValidSubmit whatever was posted. It's called for every day in the window on every render, so keep it cheap.
DateDisabledWindowTimeSpan?How far each way from the value or today to call DateDisabled and DayClass, in whole days, for an end the limits don't set. About a year unless set. With DateDisabled, the month stops at the window's edge.
DayClassFunc<DateOnly, string?>?A class for a day's button, or null. Called like DateDisabled, so keep it cheap.
@bind-ValueTValueThe value, bound with @bind-Value.
DisplayNamestring?The field's name in validation messages from the input itself, such as a value that can't be parsed.
Events (0)
No events.
Types (1)
DateFieldType
enumWhat a DateField<T> takes. Sets the input type.
| Value | Description |
|---|---|
Date | A date. |
DateTime | A date and a time of day. |
Month | A month, held as the 1st of it in a |
Year | A year, held in an |