@@ -6,12 +6,12 @@ The Calendar Control allows users to view and manage events in a calendar interf
6
6
7
7
Here is an example of the control in action:
8
8
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 )
15
15
16
16
## Installation
17
17
@@ -31,17 +31,17 @@ import { IEvent } from '@pnp/spfx-controls-react/lib/calendar/IEvent';
31
31
32
32
The Calendar Control accepts the following props:
33
33
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. |
45
45
| onDaySlotClick | (date: Date) => void | No | Callback function triggered when an event is clicked on day slot on Month view |
46
46
47
47
## Event Object (IEvent)
@@ -71,9 +71,9 @@ Events displayed in the calendar are represented using the `IEvent` interface:
71
71
| onRenderInDayView | (event: IEvent) => JSX.Element | No | Custom rendering function for day view. |
72
72
| enableOnHover | boolean | No | Whether to enable hover effects on events. |
73
73
| 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. |
77
77
78
78
## Attendee Object (IAttendee)
79
79
0 commit comments