DxDateEdit<T>.DayCellTemplate Property
Specifies the template used to display day cells.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public RenderFragment<DateTime> DayCellTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<DateTime> | The template content. |
Remarks
The DayCellTemplate property allows you to customize content and styles of cells in the Date Edit’s calendar. Use the template’s context parameter to access the current date-time object and its settings.
<DxDateEdit @bind-Date="@DateTimeValue">
<DayCellTemplate>
<span class="text-info">@context.Day.ToString()</span>
</DayCellTemplate>
</DxDateEdit>
@code{
DateTime DateTimeValue { get; set; } = DateTime.Today;
}
If you specify the DayCellTemplate, use the MaskProperties template to configure mask properties.
See Also