@@ -6,12 +6,12 @@ The Calendar Control allows users to view and manage events in a calendar interf
66
77Here is an example of the control in action:
88
9- ![ calendar] ( ../assets/calendar1 .png )
10- ![ calendar] ( ../assets/calendar2 .png )
11- ![ calendar] ( ../assets/calendar3 .png )
12- ![ calendar] ( ../assets/calendar4 .png )
13- ![ calendar] ( ../assets/calendar5 .png )
14- ![ calendar] ( ../assets/calendar6 .png )
9+ ![ calendar] ( ../assets/Calendar1 .png )
10+ ![ calendar] ( ../assets/Calendar2 .png )
11+ ![ calendar] ( ../assets/Calendar3 .png )
12+ ![ calendar] ( ../assets/Calendar4 .png )
13+ ![ calendar] ( ../assets/Calendar5 .png )
14+ ![ calendar] ( ../assets/Calendar6 .png )
1515
1616## Installation
1717
@@ -31,17 +31,17 @@ import { IEvent } from '@pnp/spfx-controls-react/lib/calendar/IEvent';
3131
3232The Calendar Control accepts the following props:
3333
34- | Property | Type | Required | Description |
35- | ------------- | ---------------------- | -------- | ------------------------------------------------------------------- |
36- | events | IEvent[ ] | Yes | List of events to display in the calendar. |
37- | height | string \| number | No | Height of the calendar. |
38- | theme | Theme | No | Theme to apply to the calendar. |
39- | onMonthChange | (date: Date) => void | No | Callback function triggered when the month changes. |
40- | onDayChange | (date: Date) => void | No | Callback function triggered when the day changes. |
41- | onWeekChange | (date: Date) => void | No | Callback function triggered when the week changes. |
42- | onNext | (date: Date) => void | No | Callback function triggered when navigating to the next period. |
43- | onPrev | (date: Date) => void | No | Callback function triggered when navigating to the previous period. |
44- | onViewChange | (view: string) => void | No | Callback function triggered when the view changes. |
34+ | Property | Type | Required | Description |
35+ | -------------- | ---------------------- | -------- | ----------- ------------------------------------------------------------------- |
36+ | events | IEvent[ ] | Yes | List of events to display in the calendar. |
37+ | height | string \| number | No | Height of the calendar. |
38+ | theme | Theme | No | Theme to apply to the calendar. |
39+ | onMonthChange | (date: Date) => void | No | Callback function triggered when the month changes. |
40+ | onDayChange | (date: Date) => void | No | Callback function triggered when the day changes. |
41+ | onWeekChange | (date: Date) => void | No | Callback function triggered when the week changes. |
42+ | onNext | (date: Date) => void | No | Callback function triggered when navigating to the next period. |
43+ | onPrev | (date: Date) => void | No | Callback function triggered when navigating to the previous period. |
44+ | onViewChange | (view: string) => void | No | Callback function triggered when the view changes. |
4545| onDaySlotClick | (date: Date) => void | No | Callback function triggered when an event is clicked on day slot on Month view |
4646
4747## Event Object (IEvent)
@@ -71,9 +71,9 @@ Events displayed in the calendar are represented using the `IEvent` interface:
7171| onRenderInDayView | (event: IEvent) => JSX.Element | No | Custom rendering function for day view. |
7272| enableOnHover | boolean | No | Whether to enable hover effects on events. |
7373| imageUrl | string | No | URL for an event-related image. |
74- | webLink | string | No | URL to navigate to event details. |
75- | color | string | No | Custom color for the event. |
76- | backgroundColor | string | No | Custom background color for the event. |
74+ | webLink | string | No | URL to navigate to event details. |
75+ | color | string | No | Custom color for the event. |
76+ | backgroundColor | string | No | Custom background color for the event. |
7777
7878## Attendee Object (IAttendee)
7979
0 commit comments