Open marioGomezDev opened 8 years ago
Hi,
I want to know if its possible to set yearrange on input date and how can i do it.
I can call
$("#id").inputmask("date", {yearrange: { minyear: 1800, maxyear: 2099 }})
but I want to declare something like this
{{input-mask mask="dd/mm/yyyy" minyear=1800 maxyear= 2099 value=myValue }}
Thanks.
This is not supported by the addon or the underlying library at the moment. However, you can pass a min and max date now https://github.com/RobinHerbots/Inputmask#alternator-masks in the options hash
min
max
options
Hi,
I want to know if its possible to set yearrange on input date and how can i do it.
I can call
$("#id").inputmask("date", {yearrange: { minyear: 1800, maxyear: 2099 }})
but I want to declare something like this
{{input-mask mask="dd/mm/yyyy" minyear=1800 maxyear= 2099 value=myValue }}
Thanks.