Thursday, May 12, 2016

Get recurring event from calendar list using Angular JS

Getting recurring event from calendar list using Angular JS is some bit tricky.
I am going to implement through CEWP(Content editor web part) in SharePoint.

1. Create HTML file for display events description(Angular View)

Give the reference of Jquery and Angular js from your SharePoint site.

If you want to display upcoming limited(suppose top 5) events then you can add condition which is inbuilt facility of Angular JS

Add condition(ng-if) in Angular repeat section

2. Now Create one JavaScript which will get all events from calendar event list and check event start date with current date and display only feature events only.

 

To get the recurrence event we have added parameter “ExpandRecurrence” with value “True” by which we can identify that event is recurrence or not.

In output you will get Title, Description, Start time and location of event. You can customize as per your requirement and apply css also.

Original Post here. Get recurring event from calendar list using Angular JS


by Kaushal Khamar via Everyone's Blog Posts - SharePoint Community

No comments:

Post a Comment