DatePicker
FreeDate field with a calendar. Month names, weekday names, the first day of the week and the date format (also used as the default placeholder) follow the current RayCraft language. Text that is not a date shows an error even without an EditContext. Opening the calendar moves focus into it, Escape closes it and returns focus to the button.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
DisplayName | string | Name used in validation messages. |
HelperText | string | Hint shown below the field. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
MaxDate | DateTime? | Latest selectable date. |
MinDate | DateTime? | Earliest selectable date. |
Placeholder | string | Placeholder shown when the field is empty. |
ReadOnly | bool | Shows the value but does not allow changes. |
Style | string | Inline style added to the root element. |
Value | DateTime? | Current value. Use with @bind-Value. |
Events
| Event | Type | Description |
|---|---|---|
ValueChanged | EventCallback<DateTime?> | Raised when the value changes. |
Package
DatePicker is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3