File tree 2 files changed +11
-2
lines changed
projects/angular-calendar/src/modules/week
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ import {
5
5
EventEmitter ,
6
6
TemplateRef
7
7
} from '@angular/core' ;
8
- import { WeekViewAllDayEvent , DayViewEvent } from 'calendar-utils' ;
8
+ import {
9
+ WeekViewAllDayEvent ,
10
+ DayViewEvent ,
11
+ WeekViewHourColumn
12
+ } from 'calendar-utils' ;
9
13
import { PlacementArray } from 'positioning' ;
10
14
11
15
@Component ( {
@@ -20,6 +24,7 @@ import { PlacementArray } from 'positioning';
20
24
let-tooltipAppendToBody="tooltipAppendToBody"
21
25
let-tooltipDisabled="tooltipDisabled"
22
26
let-tooltipDelay="tooltipDelay"
27
+ let-column="column"
23
28
>
24
29
<div
25
30
class="cal-event"
@@ -63,7 +68,8 @@ import { PlacementArray } from 'positioning';
63
68
tooltipTemplate: tooltipTemplate,
64
69
tooltipAppendToBody: tooltipAppendToBody,
65
70
tooltipDisabled: tooltipDisabled,
66
- tooltipDelay: tooltipDelay
71
+ tooltipDelay: tooltipDelay,
72
+ column: column
67
73
}"
68
74
>
69
75
</ng-template>
@@ -88,5 +94,7 @@ export class CalendarWeekViewEventComponent {
88
94
89
95
@Input ( ) tooltipTemplate : TemplateRef < any > ;
90
96
97
+ @Input ( ) column : WeekViewHourColumn ;
98
+
91
99
@Output ( ) eventClicked : EventEmitter < any > = new EventEmitter ( ) ;
92
100
}
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ export interface CalendarWeekViewBeforeRenderEvent extends WeekView {
299
299
[customTemplate]="eventTemplate"
300
300
[eventTitleTemplate]="eventTitleTemplate"
301
301
[eventActionsTemplate]="eventActionsTemplate"
302
+ [column]="column"
302
303
(eventClicked)="eventClicked.emit({ event: timeEvent.event })"
303
304
>
304
305
</mwl-calendar-week-view-event>
You can’t perform that action at this time.
0 commit comments