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.
Unfortunately, activation email could not send to your email. Please try again.

Binding to e-work-week fails with a Uncaught setModel - Invalid input for property :workWeek - Expected type - array

Thread ID:

Created:

Updated:

Platform:

Replies:

132424 Aug 31,2017 01:07 PM Sep 4,2017 06:17 AM Aurelia 3
loading
Tags: ejSchedule
Wayne Massey
Asked On August 31, 2017 01:07 PM

I am binding to an array of days in my view-model similar to the javascript example but the binding fails with a "Uncaught setModel - Invalid input for property :workWeek - Expected type - array"

I am using Chrome. 

in my template:

e-work-week="WorkWeek" e-resources.bind="Resources" e-current-date="04/03/2014" e-current-view="workWeek">

in my view-model:

this.WorkWeek = ['Sunday', 'Monday', 'Tuesday', 'Friday', 'Saturday'];

Full Example here - https://gist.run/?id=781e895428f9ee84fe334c3634ab61f2

Any ideas on how I can resolve without jumping back to Jquery?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 1, 2017 01:53 AM

Hi Wayne, 
 
Thank you for contacting Syncfusion support. 
 
We have prepared the Aurelia sample to custom work week days which can be viewed from the below location. Kindly use the below code example to overcome the reported issue. 
 
<Code> 
App.html 
<ej-schedule id="Schedule1" e-width="100%" e-height="525px" e-work-week.bind="WorkWeek" e-appointment-settings.bind="AppointmentList" e-current-date="04/03/2016"> 
</ej-schedule> 
 
App.ts 
this.WorkWeek = ['Sunday', 'Monday', 'Tuesday', 'Friday', 'Saturday']; 
</Code> 
 
Regards, 
Karthigeyan 



Wayne Massey
Replied On September 1, 2017 09:02 AM

Karthigeyan.. Thank you.. Y'all rock!!! 



Nevitha Ravi [Syncfusion]
Replied On September 4, 2017 06:17 AM

Hi Wayne, 

We are glad that our solution has resolved your issue. 
  
Regards, 
Nevitha.   

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;