Our pure JavaScript Scheduler component


Post by shawnwong »

Hi team,

I want to put a datepicker to choose data to load.

got any sample code ?

thanks
Shawn


Post by alex.l »

All the best,
Alex


Post by shawnwong »

Hi Alex,

thanks the the example. do you have example on how to trigger the API again upon date change?

const API = "https://xxxxx/eqpdev/rest/loadData?from="+startDate+"&to="+endDate;

I'm able to trigger the API using standard JV method. But i cant reload the scheduler.


Post by alex.l »

There is a https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/model/ProjectModel#function-load method, you can pass URL params in parameters.

schedulerPro.project.load({ params: { startDate : someDate } })

Full guide is here https://bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/project_data

All the best,
Alex


Post by shawnwong »

Hi Alex,

thanks for the reply. my event didnt load up when i try to reload the data.

Attachments
sample.txt
(2.51 KiB) Downloaded 30 times
Screenshot_6.png
Screenshot_6.png (137.77 KiB) Viewed 283 times

Post by alex.l »

SchedulerPro uses multi-assignment mode by default, please check the guide https://bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/project_data#working-with-inline-data

Please supply assignments in the assignmentsData section. Scheduler Pro differs from Scheduler in that it does not support single assignment using event.resourceId.

All the best,
Alex


Post Reply