Skip to content
IzzyBlazor 0.1.0-alpha.20

Enter all results ↑ ↓ move Esc close

DateField

Since 0.1.0-alpha.20
A date to type or choose from a calendar, or a date and time.

IzzyBlazor.DateField<TValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.20 assembly and its doc comments.

Properties (20)

ReadOnlybool = falseAdded in 0.1.0-alpha.20

Makes the field read-only: it can be focused, and it still posts.

TypeDateFieldType? (computed)Added in 0.1.0-alpha.20

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)Added in 0.1.0-alpha.20

The earliest value. Defaults to [Range]'s minimum; the type's default value means none.

MaxTValue (computed)Added in 0.1.0-alpha.20

The latest value. Defaults to [Range]'s maximum; the type's default value means none.

StepTimeSpan?Added in 0.1.0-alpha.20

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)Added in 0.1.0-alpha.20

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?Added in 0.1.0-alpha.20

Content attached before the control, outside its border. See StartAddon.

EndAddonRenderFragment?Added in 0.1.0-alpha.20

Content attached after the control, outside its border, such as the time zone.

UseNativebool = falseAdded in 0.1.0-alpha.20

Keeps 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 = falseAdded in 0.1.0-alpha.20

A button in the field that empties it, for a nullable value, there while it holds something. Off by default.

ChooseLabelstring?Added in 0.1.0-alpha.20

The name of the calendar's button, in place of "Choose date" and "Change date" with the date.

FirstDayOfWeekDayOfWeek? (computed)Added in 0.1.0-alpha.20

The first column. Defaults to the culture's first day of the week.

CultureCultureInfo? (computed)Added in 0.1.0-alpha.20

The culture for the month and day names, the first day and the week numbers. Defaults to the current culture.

ShowWeekNumbersbool = falseAdded in 0.1.0-alpha.20

Adds a first column with the week of the year, counted as the culture counts them.

ShowAdjacentDaysbool = trueAdded in 0.1.0-alpha.20

Whether to show the days of the months before and after, muted, in the first and last weeks. Defaults to true.

DateDisabledFunc<DateOnly, bool>?Added in 0.1.0-alpha.20

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?Added in 0.1.0-alpha.20

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?>?Added in 0.1.0-alpha.20

A class for a day's button, or null. Called like DateDisabled, so keep it cheap.

@bind-ValueTValueAdded in 0.1.0-alpha.20

The value, bound with @bind-Value.

DisplayNamestring?Added in 0.1.0-alpha.20

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

enum

What a DateField<T> takes. Sets the input type.

DateFieldType values
ValueDescription
Date

A date.

DateTime

A date and a time of day.

Month

A month, held as the 1st of it in a DateOnly or DateTime.

Year

A year, held in an int.

Connection lost

Rejoining the server…