mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.72k stars 866 forks source link

Add an index to track event Row in mwl-calendar-week-view-event #1685

Closed chitgoks closed 1 year ago

chitgoks commented 1 year ago

In Week View code

Line 40 it says

<div
        *ngFor="
          let allDayEvent of eventRow.row;
          trackBy: trackByWeekAllDayEvent
        "

Would be helpful to include the index also. If my custom event type does not exist, then i wish to occupy an invisible space so that the next event type should be always below the first one.

With the index, this is possible since i sort the events array by (custom) type e.g. VALUE1, VALUE2

So in the cell it should look like this.. VALUE1 VALUE2

Now, if there is no VALUE1, i still would ike VALUE2 to occupy the space below VALUE1. the index can help [ ] <-- invisible space VALUE2

matts-bot[bot] commented 1 year ago

This issue has been closed automatically as it did not follow the issue template, please open a new issue that follows the bug report or feature request template.

Thank you! ✌️