We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

[workWeek]

Hello,

I have a problem with the "workWeek" property on my scheduler, when trying to use it, i have this error:

Can't bind to 'workWeek' since it isn't a known property of 'ejs-schedule'.

<ejs-schedule #scheduleObj width='100%' height='650px'
            [selectedDate]="selectedDate"
            [eventSettings]="eventSettings"
            [(currentView)]="currentView"
            [group]="group" 
            (popupOpen)="onPopupOpen($event)" 
            (dataBound)="onDataBound($event)"
            (renderCell)="onRenderCell($event)"
            [allowDragAndDrop]="allowDragAndDrop" 
            [allowResizing]="allowResizing" 
            (actionComplete)="onActionComplete($event)"
            (cellClick)="onCellClicked($event)" 
            (eventClick)="onEventClicked($event)" 
            (resizeStop)="onResizeEventEnd($event)"
            (dragStop)="onDragDropEnd($event)"
            [cssClass]="'schedule-availability'"
            (eventRendered)="onEventRendered($event)"
            [firstDayOfWeek]="firstDayOfWeek"
            [workWeek]="["Tuesday","Thursday","Friday","Saturday"]"
>

Have you got an idea ? 

Thanks by advance !

1 Reply

VD Vinitha Devi Murugan Syncfusion Team October 16, 2019 10:48 AM UTC

Hi chevron, 
 
Syncfusion Greetings. 
 
The reported issue was because you wrongly defined the workweek as a property that triggers the reported issue. By using view property, we prepared the sample below to adjust the working days in the workweek..  
 
 
<e-views> 
      <e-view option='Day'></e-view> 
      <e-view option='Week'></e-view> 
      <e-view option='WorkWeek' [workDays]="[2,4,5,6]"></e-view> 
    </e-views> 
 
Kindly refer the below ug and sample link. 
 
Kindly try the above sample, if you have any concerns please revert us back for further assistance. 
 
Regards, 
M.Vinitha devi 


Loader.
Live Chat Icon For mobile
Up arrow icon