Angular 日历组件 | ng-hub-ui-calendar
Angular 日历组件,支持事件视图、拖放、模板、国际化和 CSS 变量,适用于日程安排界面。
交互式示例
探索实时示例,了解该库在常见 Angular 用例中的表现。
日历视图
August 2026
事件处理
August 2026
事件内容溢出
This example uses very long event titles and descriptions to verify that overflowing content does not resize calendar columns or break the month grid layout.
August 2026
Drag & drop 事件
Drag events to move them to different days.
August 2026
Drop Log:
No drops yet. Try dragging an event!
自定义模板
August 2026
日历配置
August 2026
CSS 变量主题
This example customizes the calendar using --hub-calendar-* CSS variables.
August 2026
国际化(i18n)
Agosto 2026
What moves with the locale
Weekday and month names, the Today shortcut and the view switcher all read from the same dictionary — chrome and data in one language, never half of each.
en and es ship with the library. Pick fr to see the documented fallback: an unbundled locale resolves to English rather than rendering blanks or raw keys.
To override the bundled strings, feed HUBUI.CALENDAR.* through provideHubTranslationAdapter(); the dictionary wins over locale, and the built-in entries remain the fallback.