yes this is possible with simlpe JS handler. Just define isDayEnabled attribute with your JS function which will takes the date and return true or false which means if the date enabled.
but what if I nead to set the range of period in dynamic way? For example for each user of the sistem diferently.
isDayEnabled takes only the function name I cann not call for exmaple :
Or am I wrong?
but you could call