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 |
| navigationClicked |
|
Emits when the navigation buttons are clicked (previous/next). |
| todayClicked |
|
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
|
| containWeekends |
Default value : input<boolean, BooleanInput>(true, { transform: booleanAttribute })
|
|
Determines whether weekends are included in the week view. |
| dateFormat |
Default value : input<string>('MMMM yyyy')
|
|
The format used to display the current month.
Defaults to |
| dateFormatOptions |
Default value : input<Intl.DateTimeFormatOptions | null>(null)
|
|
Format options for displaying the date.
If not provided, defaults will be used based on the current mode.
See |
| mode |
Default value : input<EuiCalendarMode>(EuiCalendarMode.Monthly)
|
|
The mode of the calendar header. This can be 'monthly', 'weekly', or 'daily'. Defaults to 'monthly'. |
| navigationClicked |
|
Emits when the navigation buttons are clicked (previous/next). |
| showNavigationButtons |
Default value : input<boolean, BooleanInput>(true, { transform: booleanAttribute })
|
|
Determines whether the navigation buttons (previous/next) are displayed.
Defaults to |
| showTodayButton |
Default value : input<boolean, BooleanInput>(true, { transform: booleanAttribute })
|
|
Determines whether the "Today" button is displayed.
Defaults to |
| subLabel |
Default value : input<string>('')
|
|
An optional sub-label to display below the main date label. Defaults to an empty string. |
| todayClicked |
|
Emits when the "Today" button is clicked. |