ant-design-blazor/components/date-picker/internal/DatePickerFooter.razor
Bin Dong d99f4f35a8 feat: add localization option to DatePicker (#206)
* feat: add localization option to DatePicker

* fix(module: datepicker): fix formatting issue

* fix: fix Week/Year panel miss matching
fix picker not update when setting CultureInfo
fix ShortWeekDays names and order

* fix: fix binding of CultureInfo in datetime demos
Add globalization demo

* fix: datetime string format

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-16 12:31:46 +08:00

13 lines
346 B
C#

@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; }
}