Hi Sergio,
Greetings from Syncfusion support.
Q1: How to add more details on the resource header column of the Schedule
You can add more details to the resource header column of the Schedule by using the resourceHeaderTemplate of the Schedule like below.
Step 1: Add the resourceHeaderTempalte as ng template in the app.component.html file like below code.
[app.component.html]
<div class="control-section">
<ejs-schedule cssClass='schedule-group-editing' width='100%' height='650px' [group]="group"
[selectedDate]="selectedDate" [eventSettings]="eventSettings">
<ng-template #resourceHeaderTemplate let-data>
<div class='template-wrap'>
<div class="resource-details">
<div class="resource-name">{{getEmployeeName(data)}}</div>
<a class="resource-designation"
</div>
</div>
</ng-template>
<e-views>
<e-view option="TimelineMonth"></e-view>
</e-views>
<e-resources>
<e-resource field='ConferenceId' title='Attendees' name='Conferences' [allowMultiple]='allowMultiple'
[dataSource]='resourceDataSource' textField='Text' idField='Id' colorField='Color'>
</e-resource>
</e-resources>
</ejs-schedule>
</div>
Step 2: Add the method that associated with the resourceHeaderTemplate to the app.component.ts file like below code.
[app.component.ts]
getEmployeeName(value: ResourceDetails | TreeViewArgs): string {
return ((value as ResourceDetails).resourceData) ?
(value as ResourceDetails).resourceData[(value as ResourceDetails).resource.textField] as string
: (value as TreeViewArgs).resourceName;
}
getUrlNames(value: ResourceDetails | TreeViewArgs): string {
let resourceName: string = this.getEmployeeName(value);
return (resourceName === 'Margaret') ? 'Group editing demo' : (resourceName === 'Robert') ?
'Group with custom work days demo' : 'Resource grouping demo';
}
getUrl(value) {
let resourceName: string = this.getEmployeeName(value);
return (resourceName === 'Margaret') ? 'group-editing' : (resourceName === 'Robert') ?
'group-custom-work-days' : 'resource-grouping';
}
Q2: Text Alignment
You can enable the text over flow to the next line by using the CSS property called white-space like below.
.resource-url {
white-space: initial;
}
Kindly try the above sample and get back to us If you would require further assistance.
Regards,
Ravikumar Venkatesan