{this.state.selectedEvent.title}
++ + { + this.state.selectedEvent.end !== null && + + } + { + this.state.selectedEvent.location !== '' && + + } + { + this.state.selectedEvent.category !== '' && + + } +
+Lunch & Learn Session
\r\n", + location: "Microsoft Store, 5015 Westheimer Rd Ste A2421, Houston, TX, United States", + category: "Meeting" + }, + { + id: 3, + title: "Town Hall", + start: moment("2018-07-08T21:30:00.000Z"), + end: moment("2018-07-08T22:30:00.000Z"), + color: "red", + allDay: false, + description: "", + location: "Deer Park, Texas, United States", + category: "" + }, + { + id: 4, + title: "Team Outing", + start: moment("2018-07-12T00:00:00.000Z"), + end: moment("2018-07-12T23:59:00.000Z"), + color: "red", + allDay: false, + description: "", + location: "Seaworld San Antonio, San Antonio, Texas, United States", + category: "" + } + ]; + + resolve(calendarLists); + }); + } + +} diff --git a/samples/react-aggregated-calendar/src/webparts/reactAggregatedCalendar/service/AggregatedCalendarService.ts b/samples/react-aggregated-calendar/src/webparts/reactAggregatedCalendar/service/AggregatedCalendarService.ts new file mode 100644 index 000000000..89fab2ee1 --- /dev/null +++ b/samples/react-aggregated-calendar/src/webparts/reactAggregatedCalendar/service/AggregatedCalendarService.ts @@ -0,0 +1,82 @@ +import { IAggregatedCalendarService } from './IAggregatedCalendarService'; +import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http'; +import { ServiceKey, ServiceScope, Log } from '@microsoft/sp-core-library'; +import { PageContext } from '@microsoft/sp-page-context'; +import * as moment from 'moment'; +import { SPCalendarItems } from '../model/SPCalendarItems'; +import { FullCalendarEvent } from '../model/FullCalendarEvent'; + +/** + * Aggregated Calendar Service for teh Aggregated Calendar Webpart to get the Calendar Events + * + * @export + * @class AggregatedCalendarService + * @implements {IAggregatedCalendarService} + */ +export class AggregatedCalendarService implements IAggregatedCalendarService { + public static readonly serviceKey: ServiceKey