Hi Cesar,
Thanks for the update.
We have modified the sample which is provided in our last update for Date and Hour row templates. Please find the below
For Hour template:
<ng-template #timeScaleMajorSlotTemplate let-data>
<div class="majorTime">{{getMajorTime(data.date)}}</div>
</ng-template>
<ng-template #timeScaleMinorSlotTemplate let-data>
<div class="minorTime">{{getMinorTime(data.date)}}</div>
</ng-template>
public timeScale: TimeScaleModel = {
enable: true,
slotCount: 4,
majorSlotTemplate: '#majorSlotTemplate',
minorSlotTemplate: '#minorSlotTemplate'
};
For Date template:
<ng-template #dateHeaderTemplate let-data>
<div class="date-text">{{getDateHeaderText(data.date)}}</div>
</ng-template>
To Set the interval for timescale,
<ejs-schedule #scheduleObj width='100%' height='650px' [selectedDate]="selectedDate"
[eventSettings]="eventSettings" (eventRendered)="onEventRendered($event)" [timeScale]="timeScale">
public timeScale: TimeScaleModel = {
enable: true,
slotCount: 4,
majorSlotTemplate: '#majorSlotTemplate',
minorSlotTemplate: '#minorSlotTemplate'
};
And the Hour’s row would not render in the TimelineMonth view so we should use except TimelineMonth view to show the hour rows.
<e-views>
<e-view displayName='TimelineViews' option='TimelineWeek'></e-view>
</e-views>
Kindly try the above and check the week number too and revert us for further assistance.
Regards,
Vengatesh