Calendar
A date field component that allows users to enter and edit date.
Default
The standard calendar component.
April 2026
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|---|---|---|---|---|---|
calendar-example-default.ts
Multiple Selection
Select multiple dates. Use minSelection and maxSelection to limit selection.
April 2026
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|---|---|---|---|---|---|
calendar-example-multiple.ts
Range Selection
Select a range of dates using startDate and endDate.
April 2026
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|---|---|---|---|---|---|
calendar-example-range.ts
Month and Year Selector
Customize the header with dropdowns for quick month and year navigation.
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|---|---|---|---|---|---|
calendar-example-dropdown.ts
Installation & Usage
Installation
Imports
Basic Skeleton
Internationalization
The calendar supports i18n via BrnCalendarI18nService.
Global Configuration
Use provideBrnCalendarI18n in your app bootstrap:
Runtime Configuration
Dynamically switch language using the use() method:
API Reference
Brain API
Core functionality and state management for the calendar.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnCalendar | [brnCalendar] |
|
Helm API
Styling and UI components for the calendar.
| Component | Selector | Description |
|---|---|---|
| HlmCalendar | hlm-calendar | The default styled calendar component. |
| HlmCalendarMulti | hlm-calendar-multi | Calendar for multiple date selection. |
| HlmCalendarRange | hlm-calendar-range | Calendar for date range selection. |