Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150249 | Dec 28,2019 01:01 PM UTC | Jan 3,2020 05:31 AM UTC | React - EJ 2 | 5 |
![]() |
Tags: Schedule |
if (this.islayoutChanged) {
var renderdate = this.scheduleObj.activeView.getRenderDates();
this.scheduleObj.resetWorkHours();
for (var i = 0; i < renderdate.length; i++) {
var dayindex = renderdate[i].getDay();
if(dayindex !== 0 && dayindex !== 6){
//first resource
this.scheduleObj.setWorkHours([renderdate[i]],this.workHours1[dayindex].startHour,this.workHours1[dayindex].endHour,0);
//second resource
this.scheduleObj.setWorkHours([renderdate[i]],this.workHours2[dayindex].startHour,this.workHours2[dayindex].endHour,1);
}
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.