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 |
Inputs |
Outputs |
| date |
Type : Date
|
Default value : new Date()
|
|
The reference date for the week. The component will display the week that contains this date. For example, if date is Friday 07/01 and startingDay is Monday, it will show the week from 03/01 to 09/01. |
| dayHeaderTemplate |
Type : TemplateRef<EuiCalendarDay>
|
|
Optional custom template for day headers The template will receive the day object as $implicit in the context |
| disabledDays |
Type : Date[]
|
Default value : []
|
|
Array of disabled days (Date objects) |
| dragAndDrop |
Type : boolean, BooleanInput
|
Default value : true, { transform: booleanAttribute }
|
|
Whether drag-and-drop is enabled for events (defaults to true) |
| eventContentTemplate |
Type : TemplateRef<any>
|
|
Optional custom template for event content The template will receive the event object as $implicit in the context |
| events |
Type : EuiCalendarEvent[]
|
Default value : []
|
|
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 |
Type : boolean, BooleanInput
|
Default value : false, { transform: booleanAttribute }
|
|
Whether to show weekends in the calendar (defaults to true) |
| date |
Type : Date
|
|
The reference date for the week. The component will display the week that contains this date. For example, if date is Friday 07/01 and startingDay is Monday, it will show the week from 03/01 to 09/01. |
| dayAction |
Type : { $event: MouseEvent | KeyboardEvent, day: EuiCalendarDay }
|
|
Emits when a day header action is triggered |
| eventMoved |
Type : { event: EuiCalendarEvent; newDate: Date }
|
|
Emits when an event is moved to a different day |
| events |
Type : 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. |
| drop | ||||||||
drop(dropEvent: CdkDragDrop<EuiCalendarDay>)
|
||||||||
|
Handles drop event when an event is moved between days
Parameters :
Returns :
void
|