calendar-link
import { google, outlook, office365, yahoo, ics } from "calendar-link";
jumpToMarkCalendar(type, item){
let url = null;
let event = {
title: title,
description: item.description +
`<br/>點擊下列連結<br/><a href="` + this.webexUrl + `">` + this.webexUrl + `</a>`,
start: item.startDate,
end: item.endDate
}
switch (type) {
case 'google':
url = google(event);
break;
case 'outlook':
url = outlook(event);
break;
case 'office365':
url = office365(event);
break;
case 'yahoo':
url = yahoo(event);
break;
case 'ics':
event.description = item.description +
`\n點擊下列連結\n` + this.webexUrl
url = ics(event);
break;
default:
break;
}
window.open(url, '_blank')
}
|