bevacqua / rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!
https://bevacqua.github.io/rome
MIT License
2.91k stars 223 forks source link

Added "allowUserInput" option #88

Closed romankras closed 9 years ago

romankras commented 9 years ago

Added option that allows to enter manually date and time which are not present in the dropdown

bevacqua commented 9 years ago

Why not use a dateValidator that always returns true instead?

romankras commented 9 years ago

If i understand correctly, in this case every input would be valid. I wanted to save validation against date and time foramts provided in the config dictionary.

bevacqua commented 9 years ago
dateValidator: function (date) {
  return valid.indexOf(date) !== -1
}
romankras commented 9 years ago

Sorry, but this snippet throwing the following error: Uncaught ReferenceError: valid is not defined Should I change something else?

bevacqua commented 9 years ago

Yes, your "config dictionary"