Skip to content

Commit

Permalink
fix(tooltipTemplate): ensure custom tooltip template is available to …
Browse files Browse the repository at this point in the history
…other custom templates
  • Loading branch information
Matt Lewis committed Jun 28, 2017
1 parent 97e9626 commit ce14b96
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/components/day/calendarDayViewEvent.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ import { DayViewEvent } from 'calendar-utils';
</ng-template>
<ng-template
[ngTemplateOutlet]="customTemplate || defaultTemplate"
[ngTemplateOutletContext]="{dayEvent: dayEvent, tooltipPlacement: tooltipPlacement, eventClicked: eventClicked}">
[ngTemplateOutletContext]="{
dayEvent: dayEvent,
tooltipPlacement: tooltipPlacement,
eventClicked: eventClicked,
tooltipTemplate: tooltipTemplate
}">
</ng-template>
`
})
Expand Down
3 changes: 2 additions & 1 deletion src/components/month/calendarMonthCell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ import { MonthViewDay, CalendarEvent } from 'calendar-utils';
tooltipPlacement: tooltipPlacement,
highlightDay: highlightDay,
unhighlightDay: unhighlightDay,
eventClicked: eventClicked
eventClicked: eventClicked,
tooltipTemplate: tooltipTemplate
}">
</ng-template>
`,
Expand Down
7 changes: 6 additions & 1 deletion src/components/week/calendarWeekViewEvent.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ import { WeekViewEvent } from 'calendar-utils';
</ng-template>
<ng-template
[ngTemplateOutlet]="customTemplate || defaultTemplate"
[ngTemplateOutletContext]="{weekEvent: weekEvent, tooltipPlacement: tooltipPlacement, eventClicked: eventClicked}">
[ngTemplateOutletContext]="{
weekEvent: weekEvent,
tooltipPlacement: tooltipPlacement,
eventClicked: eventClicked,
tooltipTemplate: tooltipTemplate
}">
</ng-template>
`
})
Expand Down

0 comments on commit ce14b96

Please sign in to comment.