Closed pararrayos closed 7 years ago
There is no such limitation, any function is allowed there. Try to use debugger in Dev Tools, just put breakpoint on the line inside of the loop to see if it is working and if not, then why. You can also run it line by line and see what exactly values are compared.
I found it. There was a missmatch among new Date('whateverday').getTime() and date.getTime(). Now it works. Thank you anyway.
Hi Mr. Mokrynskyi. I'm using your fabolous calendar and I'm facing a minor problem.
I'm using render to make weekend days un-selectables, so I'm coding this:
Note: three dots just mean more code before and after
This works fine. But now I want to make holidays days un-selectables too, so I'm trying with this:
And now weekend days are still unselectables (as desired) but holiday days' piece of code isn't working. Is there any 'restriction' or something like that in using a for loop inside render?
Thanks :)