packages/components/eui-calendar/eui-calendar-header.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | eui-calendar-header |
| imports |
NgTemplateOutlet
TranslateModule
EUI_ICON
EUI_LABEL
EUI_BUTTON
|
| styleUrls | ./eui-calendar-header.component.scss |
| templateUrl | ./eui-calendar-header.component.html |
Properties |
Methods |
Inputs |
Outputs |
| containWeekends |
Type : boolean, BooleanInput
|
Default value : true, { transform: booleanAttribute }
|
|
Determines whether weekends are included in the week view. |
| currentDate |
Type : Date
|
| Required : true |
|
The currently selected date. This is a required input signal.
It should be a Important: For weekly mode, ensure the date represents the first day of the week. |
| customTemplate |
Type : TemplateRef<EuiCalendarHeaderContext> | null
|
Default value : null
|
|
A custom template for the header. If provided, it will replace the default header layout.
The template context is of type |
| dateFormat |
Type : string
|
Default value : 'MMMM yyyy'
|
|
The format used to display the current month.
Defaults to |
| dateFormatOptions |
Type : Intl.DateTimeFormatOptions | null
|
Default value : null
|
|
Format options for displaying the date.
If not provided, defaults will be used based on the current mode.
See |
| mode |
Type : EuiCalendarMode
|
Default value : EuiCalendarMode.Monthly
|
|
The mode of the calendar header. This can be 'monthly', 'weekly', or 'daily'. Defaults to 'monthly'. |
| showNavigationButtons |
Type : boolean, BooleanInput
|
Default value : true, { transform: booleanAttribute }
|
|
Determines whether the navigation buttons (previous/next) are displayed.
Defaults to |
| showTodayButton |
Type : boolean, BooleanInput
|
Default value : true, { transform: booleanAttribute }
|
|
Determines whether the "Today" button is displayed.
Defaults to |
| subLabel |
Type : string
|
Default value : ''
|
|
An optional sub-label to display below the main date label. Defaults to an empty string. |
| currentDate |
Type : Date
|
|
The currently selected date. This is a required input signal.
It should be a Important: For weekly mode, ensure the date represents the first day of the week. |
| navigationClicked |
Type : EuiCalendarNavigationEvent
|
|
Emits when the navigation buttons are clicked (previous/next). |
| todayClicked |
Type : Date
|
|
Emits when the "Today" button is clicked. |
| goToToday |
goToToday()
|
|
Navigates to today's date.
Emits a
Returns :
void
|
| navigateNext |
navigateNext()
|
|
Navigates to the next month, week, or day based on the current mode.
Emits a
Returns :
void
|
| navigatePrevious |
navigatePrevious()
|
|
Navigates to the previous month, week, or day based on the current mode.
Emits a
Returns :
void
|