2020-04-26 14:22:47 -04:00
---
page_type: sample
products:
- office-sp
languages:
- javascript
- typescript
extensions:
contentType: samples
technologies:
- SharePoint Framework
platforms:
- react
createdDate: 04/25/2017 12:00:00 AM
---
2020-11-08 23:17:26 -05:00
# Calendar
2019-05-04 10:58:48 -04:00
## Summary
2020-06-09 17:08:34 -04:00
2019-06-12 17:52:01 -04:00
This Web Part allows you to manage events in a calendar.
2019-05-04 10:58:48 -04:00
Uses a list of existing calendars on any website.
The location and name of the list and the dates of the events to be displayed are defined in the properties of the web part.
Each category has its own color that is generated in the load.
The Web Part checks the user's permissions for the View, Add, Edit, and Delete events.
2020-04-26 14:22:47 -04:00
![calendar ](assets/animatevideo.gif )
2019-06-12 17:52:01 -04:00
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/weekly_moderncalendar.gif )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/modercalendar_monthly.gif )
2019-05-04 10:58:48 -04:00
2019-06-11 12:10:09 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/moderncalendar_yearly.gif )
2019-05-04 10:58:48 -04:00
## Web Part - Screenshots
2019-06-11 12:10:09 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/calendar_teams.jpg )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/calendar_teams2.jpg )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.0.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.1.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.2.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.3.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen1.4.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen2.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen3.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen4.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen5.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen6.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen7.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen8.png )
2019-05-04 10:58:48 -04:00
2020-04-26 14:22:47 -04:00
![calendar ](assets/screen9.png )
2019-05-04 10:58:48 -04:00
2021-04-04 22:16:03 -04:00
## Compatibility
![SPFx 1.10 ](https://img.shields.io/badge/SPFx-1.10.0-green.svg )
![Node.js LTS 6.x | LTS 8.x ](https://img.shields.io/badge/Node.js-LTS%206.x%20%7C%20LTS%208.x-green.svg )
![SharePoint Online ](https://img.shields.io/badge/SharePoint-Online-yellow.svg )
![Teams N/A: Untested with Microsoft Teams ](https://img.shields.io/badge/Teams-N%2FA-lightgrey.svg "Untested with Microsoft Teams" )
![Workbench Hosted: Does not work with local workbench ](https://img.shields.io/badge/Workbench-Hosted-yellow.svg "Does not work with local workbench" )
2020-04-26 14:22:47 -04:00
2019-05-04 10:58:48 -04:00
## Applies to
2020-06-09 03:09:22 -04:00
* [SharePoint Framework ](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview )
* [Office 365 tenant ](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment )
2019-05-04 10:58:48 -04:00
2021-04-26 02:08:59 -04:00
## Web Part Properties
2019-05-04 10:58:48 -04:00
Property |Type|Required| comments
--------------------|----|--------|----------
Site Url of Calendar List | Text| yes|
2019-06-12 17:48:21 -04:00
Calendar list| Choice/Dropdown | yes| this is filled with all list of type "event list" created
2021-04-04 22:16:03 -04:00
Start Date | Date | yes | Event Date
2019-05-04 10:58:48 -04:00
End Date| Date| yes | Event Date
## Solution
2020-10-18 21:58:03 -04:00
The Web Part Use PnPjs library, Office-ui-fabric-react components. react Big-Calendar Component
2019-05-04 10:58:48 -04:00
Solution|Author(s)
--------|---------
2021-05-19 23:27:40 -04:00
Calendar Web Part|[Abderahman Moujahid](https://github.com/Abderahman88)
Calendar Web Part|[Eli H. Schei](https://github.com/Eli-Schei)
Calendar Web Part|[Hugo Bernier](https://github.com/hugoabernier) ([@bernier](https://twitter.com/bernierh), [Tahoe Ninjas ](https://tahoeninjas.blog/ ))
Calendar Web Part|[João Mendes](https://github.com/joaojmendes)
Calendar Web Part|[Mohamed Derhalli](https://github.com/derhallim)
Calendar Web PArt|[Mohammed Amer](https://www.linkedin.com/in/mohammad3mer/) ([@Mohammad3mer](https://twitter.com/Mohammad3mer))
Calendar Web Part|[Nanddeep Nachan](https://github.com/nanddeepn) ([@NanddeepNachan](https://twitter.com/NanddeepNachan))
2019-05-04 10:58:48 -04:00
## Version history
Version|Date|Comments
-------|----|--------
1.0.0|April 25, 2019|Initial release
2019-06-11 12:10:09 -04:00
1.0.1|June 10, 2019|update add recurrence events
2020-04-25 21:41:34 -04:00
1.0.2|April 25, 2020|Update styles according to the applied theme
2020-06-09 17:08:34 -04:00
1.0.3|June 06, 2020|Upgrade to SPFx 1.10.0
2020-10-18 21:58:03 -04:00
1.0.4|October 18, 2020|Added support for all-day events
2020-12-02 20:04:23 -05:00
1.0.5|October 21, 2020|Added Year view
1.0.6|December 3, 2020|Fixed all-day events (#1623)
2020-12-03 21:09:15 -05:00
1.0.7|December 4, 2020|Fixed styling Year view + Dutch localization
2020-12-24 16:15:44 -05:00
1.0.8|December 24, 2020|Fixed timezone difference (#1646)
2021-04-04 22:16:03 -04:00
1.0.9|March 16, 2021|Fixed issue deleting events (#1773)
1.0.10|March 27, 2021|Updated prompt message when deleting single v/s multi-event.
2021-05-19 23:27:40 -04:00
1.0.11|May 10, 2021|Optimized page refresh using local storage
2019-05-04 10:58:48 -04:00
## Minimal Path to Awesome
- Clone this repository
- in the command line run:
- `npm install`
- `gulp build`
- `gulp bundle --ship`
- `gulp package-solution --ship`
2020-04-26 14:22:47 -04:00
- Add to **AppCatalog** and deploy
2019-05-04 10:58:48 -04:00
2021-05-19 23:27:40 -04:00
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
## Support
We do not support samples, but we do use GitHub to track issues and constantly want to improve these samples.
If you encounter any issues while using this sample, [create a new issue ](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=react-calendar&authors=@Abderahman88,%20@Eli-Schei,%20@hugoabernier,%20@joaojmendes,%20@derhallim,%20@nanddeepn,%20@mohammadamer&title=react-calendar%20-%20 ).
For questions regarding this sample, [create a new question ](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=react-calendar&authors=@Abderahman88,%20@Eli-Schei,%20@hugoabernier,%20@joaojmendes,%20@derhallim,%20@nanddeepn,%20@mohammadamer&title=react-calendar%20-%20 ).
Finally, if you have an idea for improvement, [make a suggestion ](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=react-calendar&authors=@Abderahman88,%20@Eli-Schei,%20@hugoabernier,%20@joaojmendes,%20@derhallim,%20@nanddeepn,%20@mohammadamer&title=react-calendar%20-%20 ).
2019-06-12 17:48:21 -04:00
< img src = "https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-calendar" / >