Our pure JavaScript Scheduler component


Post by albaap »

I have scheduled that working on the computer not mobile
If I use it on the mobile browser is Show me White page


Post by mats »

Any errors on the console? Can you provide a test case with code so we can debug?


Post by albaap »

I was debugging it and the problem in
startDate: new Date()
endDate: new Date()


Post by tasnim »

Hi,
Please provide a runnable test case. We'll check what's wrong.

Best regards,
Tasnim


Post by albaap »

      let today = new Date()
      const [requestedDate, setRequestedDate] = useState(`${today.getFullYear()}-${today.getMonth() + 1}-${today.getDate()}`);
	
const schedulerConfig = {
    timelineZoomable: 1,
    minHeight: '54em',
    rowHeight: 60,
    startDate: new Date(`${requestedDate} 08:00`,)
    endDate:new Date( `${requestedDate} 24:00`)
    }

Post by mats »

That's a bit odd way of creating dates. Can you please provide the raw value of startDate and endDate? Also, if you can upload a small runnable test case, that's preferred.


Post by albaap »

Whenever we use a new Date() in the component, It is not working fine for mobile.


Post by mats »

Can you please provide the raw value of startDate and endDate? Also, if you can upload a small runnable test case, that's preferred.


Post Reply