adopted-ember-addons / ember-inputmask

Ember wrapper around Inputmask.js
https://adopted-ember-addons.github.io/ember-inputmask/
MIT License
68 stars 45 forks source link

Set yearrange on input date #22

Open marioGomezDev opened 8 years ago

marioGomezDev commented 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.

brandynbennett commented 5 years ago

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