а

I want to disable cell in scheduler week view, that is less than current date and current time. How can i do?


#1

I want to disable cell in scheduler week view, that is less than current date and current time. How can i do?

I am making a booking project that should not be clicked previous date and time…


#2

Hi @Linnz,

You should use addMarkedTimespan, please read details in the documentation
https://docs.dhtmlx.com/scheduler/limits.html

To disable time only in the week view, check the current view in onViewChange API event and call addMarkedTimespan each time when it is Week. Also, remove MarkedTimespan by deleteMarkedTimespan in the onBeforeViewChange handler.
Demo https://snippet.dhtmlx.com/49bb76f2b