@ilamy/calendar 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -469,6 +469,13 @@ interface IlamyCalendarProps {
|
|
|
469
469
|
*/
|
|
470
470
|
eventSpacing?: number;
|
|
471
471
|
/**
|
|
472
|
+
* Height of event bars in horizontal grid views (month view, resource month, resource week horizontal) in pixels.
|
|
473
|
+
* Increase this to show more content per event (e.g., title + time on separate lines).
|
|
474
|
+
* Does not affect day/week views, which use percentage-based heights that scale with event duration.
|
|
475
|
+
* Defaults to 24 pixels if not specified.
|
|
476
|
+
*/
|
|
477
|
+
eventHeight?: number;
|
|
478
|
+
/**
|
|
472
479
|
* Whether to stick the view header to the top of the calendar.
|
|
473
480
|
* Useful for keeping the header visible while scrolling.
|
|
474
481
|
*/
|
|
@@ -554,6 +561,11 @@ interface IlamyCalendarProps {
|
|
|
554
561
|
* @example ['saturday', 'sunday'] // Hide weekends
|
|
555
562
|
*/
|
|
556
563
|
hiddenDays?: WeekDays[];
|
|
564
|
+
/**
|
|
565
|
+
* Custom render function for the hour labels in the gutter/header.
|
|
566
|
+
* Receives a Dayjs object for the hour and should return a React node.
|
|
567
|
+
*/
|
|
568
|
+
renderHour?: (date: Dayjs) => React3.ReactNode;
|
|
557
569
|
}
|
|
558
570
|
declare const IlamyCalendar: React4.FC<IlamyCalendarProps>;
|
|
559
571
|
declare const isRecurringEvent: (event: CalendarEvent) => boolean;
|