You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the n-date-picker component with type="date". When the value is null and the user clicks on the field and the calendar opens, it automatically shows the current month. However, I would like to show a specific month instead and I found no way to do this. (Concretely, I would like the user to pick a date in July or August, but we are in February and they have to click "next month" several times.) I tried the default-value parameter but it doesn't appear to do anything, at least with type="date".
This function solves the problem (这个功能解决的问题)
I am using the
n-date-picker
component withtype="date"
. When the value isnull
and the user clicks on the field and the calendar opens, it automatically shows the current month. However, I would like to show a specific month instead and I found no way to do this. (Concretely, I would like the user to pick a date in July or August, but we are in February and they have to click "next month" several times.) I tried thedefault-value
parameter but it doesn't appear to do anything, at least withtype="date"
.Expected API (期望的 API)
A new parameter, e.g.
default-view
:So if
timestamp
isnull
, when the user clicks on the field, the calendar automatically shows the month containing the date 2023-07-15.The text was updated successfully, but these errors were encountered: