I'm using Angular Calendar and displaying Calendar events , for the week view I want to change the events width dynamically depending on variable in ts component , but I failed to achieve this .
this the code for the week view
<mwl-calendar-week-view
*ngSwitchCase="CalendarView.Week"
[viewDate]="viewDate"
[events]="events"
[locale]="locale"
[refresh]="refresh"
(eventClicked)="handleEvent('Clicked', $event.event)"
(eventTimesChanged)="eventTimesChanged($event)">
</mwl-calendar-week-view>
I tried adding some style proprety to the calendar week element like [style.width.%]="value" or [style.width.px]="value" but the event width remains fix .
What I want to achieve exactly is the same with this stackblitz project in line 169 :https://stackblitz.com/edit/angular-ukwpj8-xjmtxl?file=demo%2Fcustom-week-view.component.ts
but this project structure is a little bit diffrent from my project structure so how I can achieve this in my project