novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
39 lines (33 loc) • 1.13 kB
text/typescript
import { Component, Input, Output, EventEmitter, TemplateRef } from '@angular/core';
import { CalendarEvent } from '../../../utils/calendar-utils/CalendarUtils';
@Component({
selector: 'novo-calendar-all-day-event',
template: `
<ng-template #defaultTemplate>
<div
class="cal-all-day-event"
[style.backgroundColor]="event.color.secondary"
[style.borderColor]="event.color.primary">
{{event.title}}
<!--<novo-calendar-event-title
[event]="event"
view="day"
(click)="eventClicked.emit()">
</novo-calendar-event-title>
<novo-calendar-event-actions [event]="event"></novo-calendar-event-actions>-->
</div>
</ng-template>
<ng-template
[ngTemplateOutlet]="customTemplate || defaultTemplate"
[ngOutletContext]="{
event: event,
eventClicked: eventClicked
}">
</ng-template>
`
})
export class NovoCalendarAllDayEventElement {
@Input() event: CalendarEvent;
@Input() customTemplate: TemplateRef<any>;
@Output() eventClicked: EventEmitter<any> = new EventEmitter();
}