gijgo icon indicating copy to clipboard operation
gijgo copied to clipboard

Cannot set default value for picker

Open dani-91 opened this issue 5 years ago • 2 comments

Hi, it would be nice to have a config variable eg. defaultValue: '2000-01-01' that is the first value for the datepicker if the input filed is empty.

If i use value: '2000-01-01' then the start value is this date but the input field is already filled. But I don't want that it is already filled.

Is this possible?

Thank you very much in advance.

dani-91 avatar Feb 02 '20 17:02 dani-91

It would indeed be very usefull if you could set a default date for the datepicker. This way you can let the datepicker open on a specific year/month (it's a bit annoying if a user needs to specify their birthdate, and the datepicker opens on the current month/year, it's nicer to let the datepicker open on the current month 18 years ago for example.)

It would also be nice that if you specify a maxDate, the datepicker won't open on the current month/year, but on the first date that's enabled.

kees-brandenburg avatar Apr 16 '20 09:04 kees-brandenburg

Adding another vote to add a default date property.

denisplaster avatar Feb 16 '21 15:02 denisplaster