@spezutil/hijri-calendar-angular
v0.1.3
Published
Angular wrapper for the Hijri calendar view Web Component.
Downloads
279
Readme
@spezutil/hijri-calendar-angular
Angular wrapper for @spezutil/hijri-calendar — the Hijri-first interactive calendar view Web Component (month, week, day, agenda). Standalone component, Angular >= 17.
Install
npm install @spezutil/hijri-calendar-angular @spezutil/hijri-calendarUsage
import { Component } from "@angular/core";
import { HijriCalendarComponent, type EventClickDetail } from "@spezutil/hijri-calendar-angular";
@Component({
standalone: true,
imports: [HijriCalendarComponent],
template: `<hijri-calendar-ng
view="month"
date="2026-07-06"
[events]="events"
(eventClick)="onEventClick($event)"
(slotClick)="onSlotClick($event)"
></hijri-calendar-ng>`,
})
export class ExampleComponent {
events = [{ id: "1", title: "Majlis", start: "2026-07-09T18:00" }];
onEventClick(detail: EventClickDetail) {
console.log(detail);
}
onSlotClick(detail: { gregorian: string }) {
console.log(detail.gregorian);
}
}Inputs mirror the element attributes (view, date, locale, dir, weekStart, dayStart, dayEnd, timeFormat, maxEvents, primary, secondaryPosition, events); outputs emit the typed details (eventClick, dateClick, slotClick, moreClick, viewChange, dateChange).
Docs
https://hatimmnomani.github.io/SpezUtil/
License
Apache-2.0
