Syncfusion Angular Schedular documentation incorrect

startHour endHour does not work as per Syncfusion Angular documentation 

This however does work...
app.component.html
<div class="container-fluid">
<ejs-schedule [startHour]="startHour" [endHour]="endHour" [currentView]="newViewMode" [views]='views' [eventSettings]='eventSettings' >
<e-view option='Day' [timeScale]="timeScaleOptions">e-view>
<e-view option='Week' [interval]="viewInterval" [isSelected]="isSelected">e-view>
ejs-schedule>
div>

app.component.ts
public startHour: string = '08:00';
public endHour: string = '21:00';

Syncfusion Angular Documention 

screenshot2




1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team March 13, 2019 11:55 AM UTC

Hi Byron,     
 
Thank you for contacting Syncfusion support. 
 
We would like to inform that our documentation is correct. In your code example, parent tag <e-views> is not used which is cause for the issue. Kindly refer the below code example. 
 
<ejs-schedule #scheduleObj width='100%' height='650px'  [selectedDate]="selectedDate" [eventSettings]="eventSettings" [currentView]="currentView" [views]='view' 
              (eventRendered)="oneventRendered($event)"> 
            <e-views> 
                <e-view option="Day" startHour='10:00' endHour='18:00' ></e-view> 
                <e-view option="Week" startHour='10:00' endHour='18:00' ></e-view> 
            </e-views> 
        </ejs-schedule> 
 
Regards, 
Karthi 


Loader.
Up arrow icon