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

How to add multiple values for dateValidator #206

Open evolvitus opened 2 years ago

evolvitus commented 2 years ago

Is there a possibility to add multiple values for dateValidator ?

I need rome.val.only(DATES) and at least rome.val.beforeEq(INPUT_TO) / rome.val.afterEq(INPUT_FROM) I tryied with function() like

dateValidator: function(d) {
  rome.val.only(DATES);
  rome.va.lexcept(EXCEPT);
  rome.val.beforeEq(INPUT_TO);
},

but it doesn't work

(ofcourse DATES, EXCEPT and INPUT_TO are valid data)