ant-design-blazor/components/date-picker/internal/DatePickerFooter.razor

13 lines
346 B
C#
Raw Normal View History

@namespace AntDesign.Internal
<div class="@(DatePicker.PrefixCls)-footer">
<a class="@(DatePicker.PrefixCls)-today-btn" @onclick="e => DatePicker.ChangePickerValue(DateTime.Now)">
@this.DatePicker.CultureInfo.GetDateLocale().Today
</a>
</div>
@code {
[CascadingParameter]
public DatePicker DatePicker { get; set; }
}