packages/components/eui-calendar/eui-calendar-weekly.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | eui-calendar-weekly |
| imports |
CdkDropList
CdkDrag
EuiCalendarWeeklyDayHeaderComponent
EuiCalendarWeeklyDayContentComponent
NgTemplateOutlet
NgClass
|
| styleUrls | ./eui-calendar-weekly.component.scss |
| templateUrl | ./eui-calendar-weekly.component.html |
Properties |
Methods |
| drop | ||||||||
drop(dropEvent: CdkDragDrop<EuiCalendarDay>)
|
||||||||
|
Handles drop event when an event is moved between days
Parameters :
Returns :
void
|
| dayAction |
Default value : output<{ $event: MouseEvent | KeyboardEvent, day: EuiCalendarDay }>()
|
|
Emits when a day header action is triggered |
| dayHeaderTemplate |
Default value : input<TemplateRef<EuiCalendarDay>>()
|
|
Optional custom template for day headers The template will receive the day object as $implicit in the context |
| dragAndDrop |
Default value : input<boolean, BooleanInput>(true, { transform: booleanAttribute })
|
|
Whether drag-and-drop is enabled for events (defaults to true) |
| eventContentTemplate |
Default value : input<TemplateRef<any>>()
|
|
Optional custom template for event content The template will receive the event object as $implicit in the context |
| eventMoved |
Default value : output<{ event: EuiCalendarEvent; newDate: Date }>()
|
|
Emits when an event is moved to a different day |
| events |
Default value : model<EuiCalendarEvent[]>([])
|
|
Events for the week. Each event should have a date property. The date property should be a Date object. Other properties can be added as needed. |
| showWeekends |
Default value : input<boolean, BooleanInput>(false, { transform: booleanAttribute })
|
|
Whether to show weekends in the calendar (defaults to true) |