Add image on bottom of events

How can i add a image and text in the botom part of the events on the calendar, like when the time appears on the event in sheduler



1 Reply 1 reply marked as answer

SR Swathi Ravi Syncfusion Team December 2, 2024 01:24 PM UTC

Hi Arturo,
Thank you for reaching out.
You can achieve your requirement by utilizing the scheduler's eventSettingTemplate template, as shown in the snippets below.
Html:
<div class="control-section">
  <div class="col-lg-12 content-wrapper">
    <ejs-schedule #scheduleObj width='100%' cssClass='timeline-resource-grouping' height='650px'
      [selectedDate]="selectedDate" [group]="group" [workDays]="workDays" [eventSettings]="eventSettings">
      <ng-template #eventSettingsTemplate let-data>
        <div class='template-wrap'>
            <div class="subject">{{data.Subject}}</div>
            <div class="some-image"><img class="image" src="https://ej2.syncfusion.com/angular/demos/assets/schedule/images/margaret.png" /></div>
        </div>
    </ng-template>
    </ejs-schedule>
  </div>
</div>

CSS:
.image {
  width: 34px;
  height: 21px;
  background-size: 45px;
  background-repeat: no-repeat;
}
Regards,
Swathi


Marked as answer
Loader.
Up arrow icon