Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set yearrange on input date #22

Open
marioGomezDev opened this issue Apr 11, 2016 · 1 comment
Open

Set yearrange on input date #22

marioGomezDev opened this issue Apr 11, 2016 · 1 comment

Comments

@marioGomezDev
Copy link

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.

@brandynbennett
Copy link
Collaborator

brandynbennett commented Jan 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants