Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day view dynamic color change does it only for the first half an hour #665

Open
seatechdev opened this issue Oct 19, 2023 · 2 comments
Open

Comments

@seatechdev
Copy link

seatechdev commented Oct 19, 2023

I change colors of various events dynamically in my day view. However, the color change shows up only for the first half an hour of the appointment. In the attached screenshot each appointment is is 2.5 hours long however only the first half an hour is covered. If I don't use ngStyle and just leave calendar-event-inner css class then I can see the whole 2.5 hours covered but not dynamic.

<ng-template #dayviewNormalEventTemplate let-displayEvent="displayEvent">
     <div *ngIf="displayEvent.event.event_type =='Appointment'">
        <div [ngStyle]="appointmentColor" >{{displayEvent.event.title}}</div>
      </div>
         <div *ngIf="displayEvent.event.event_type =='Visit'">
        <div [ngStyle]="visitColor"> {{displayEvent.event.title}}</div>
      </div>
</ng-template>

Screenshot 2023-10-18 at 8 33 01 PM

@seatechdev
Copy link
Author

Tried this with [dayviewNormalEventSectionTemplate]="dayviewNormalEventSectionTemplate" and followed the documentation but no success.

@twinssbc
Copy link
Owner

Since I don't know your customized css style, can't help further. I think you could first don't apply any css customization, and see what's the effective style on your element, then add your customized style, see what's get overridden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants