-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add "init-day" option for datePicker #1050
Comments
Does it totally make sense for the date picker to change your model without user interaction? |
@caitp I think @ariesjia talks about the initial month/year display of the datepicker. Currently, it's the current month/year, if no model value is assigned. @ariesjia I understand your use case and this is not difficult to implement, but I don't know if another config option is the proper solution here. Perhaps the initial selection could me You can achieve what you want if you set the model on the date you want to be displayed on the datepicker, and then on a Again, I am not sure if we want to support this, and if we do, will be with another option, a convention like |
The “today” button can not be disabled or change to others when today is out of min date and max date. |
@bekos IMO it makes sense to make sure that the initial selection (especially if it doesn't come from the model but is taken as the current date) falls within min / max range. As for the other option I'm, as you, unsure it it makes sense. But yeh, probably assuring that we display initial state within (min, max) range makes sense. |
The 7f4b40e supports the |
If i set min date is "2014-05-01", I need to click multiple times to reach the place which is able
Because the initialization date has no relationship with min or max , also can't customized. just use the
selected = new Date()
The text was updated successfully, but these errors were encountered: