Add daa property value on each day of the month and week view

How can i add a fare value which is property of my data on ach day of 


1 Reply 1 reply marked as answer

SR Swathi Ravi Syncfusion Team December 6, 2024 12:08 PM UTC

Hi Arturo,

Thank you for reaching out.

You can achieve your requirements by using the Scheduler's cellTemplate as shown in the below shared code snippets.

HTML:

    <ejs-schedule #scheduleObj>
      <ng-template #cellTemplate let-data>
        <div class="templatewrap" [innerHTML]="getCellContent(data)"></div>
      </ng-template>
      <e-views>
        <e-view option="TimelineDay"></e-view>
      </e-views>
    </ejs-schedule>

TS:

  public getCellContent(data: any) {
    if(data.type == "workCells") {
      return "500"; //here you can utilize your property value.
    }
  }



Regards,
Swathi

Marked as answer
Loader.
Up arrow icon