Angular カレンダーコンポーネント | ng-hub-ui-calendar
イベントビュー、ドラッグ&ドロップ、テンプレート、国際化、CSS 変数を備えた Angular カレンダーコンポーネント。スケジューリングインターフェース向けです。
インタラクティブなサンプル
一般的な Angular のユースケースでライブラリがどのように動作するかを示すライブサンプルをご覧ください。
カレンダービュー
September 2026
コンパクトなミニ月表示
Team calendar
A dashboard card, 370px wide
September 2026
The same events, the same [height], without compact
September 2026
A height alone does not make a calendar fit, because the cells have floors of their own: a day cell asks for 80px and a week row for 100px, so six rows cost 600px before a date is drawn and the full-size calendar spends its 250px showing the first week. compact lifts both floors — same box, whole month.
ビューが一つなら切り替えは描かれない
availableViews: [MONTH] — no switcher
September 2026
availableViews: [MONTH, WEEK] — switcher
September 2026
A switcher offering one choice is not a switcher: the button could only ever repaint its own pressed state, and it was still taking a button's worth of the header. Nothing to opt into — narrow config.availableViews to one view and the row goes, in a full-size calendar as in a compact one.
曜日の頭文字は言語が決める
September 2026
S M T W T F S in English, D L M X J V S in Spanish. Compact narrows the weekday headers to the locale's own initials, which come from Intl and not from the dictionary — Spanish will not give you a usable initial by slicing a name, because martes and miércoles both start with M, and that is why its Wednesday is an X. An explicit [weekdayFormat] still wins.
イベント処理
September 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.
September 2026
drag & drop イベント
Drag events to move them to different days.
September 2026
Drop Log:
No drops yet. Try dragging an event!
カスタムテンプレート
September 2026
日付と時刻の書式
September 2026
カレンダー設定
September 2026
CSS 変数によるテーマ設定
This example customizes the calendar using --hub-calendar-* CSS variables.
September 2026
セマンティックアクセント (variant)
September 2026
brand is not one of the nine built-ins: it renders because this example declares --hub-sys-color-brand on the wrapper. Any accent your design system defines works the same way, with no recompilation of the library.
国際化(i18n)
Septiembre 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.