Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151241 | Feb 5,2020 01:54 AM UTC | Feb 12,2020 05:54 AM UTC | Angular | 11 |
![]() |
Tags: ejSchedule |
App.component.html
<ng-template #dateHeaderTemplate let-data>
<div class="date-text">{{getDateHeaderText(data.date)}}</div>
</ng-template>
App.component.ts
onBound(): void {
if (this.flag) {
let element: any = document.querySelectorAll('.e-resource-cells');
for (let i = 0; i < this.resourceDataSource.length; i++) {
element[i + 1].classList.add((this.resourceDataSource[i] as any).text);
}
this.flag = false;
}
}
App.component.CSS
.date-text,
.name {
text-align: center;
}
.Jammy {
background-color: #ea7a57 !important;
}
.Tweety {
background-color: #7fa900 !important;
}
.Nestle {
background-color: #5978ee !important;
}
.Phoenix {
background-color: #fec200 !important;
} |
.timeline-resource.e-schedule à class name for the timeline resources.
.e-timeline-view à root class name for the timeline views(TimelineDay, TimelineWeek, TimelineWorkWeek)
.e-date-header-wrap à class name for the date header sections.
.e-resource-cells à class name for the resources cells |
So let's reformulate my question: in the Scheduler API are defined a lot of properties for different actions, events, directives, but there are not listed the default values.
Another example beside the CSS classes are ActionEventArgs API events in Angular Schedule API component.
In the documentation it is shown "requestType string Returns the request type of the current action.", but you do not know the values are "eventCreate" or "eventChange" (or more).
|
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.