语言

Menu
Sites
Language
Create Calendar event /task

any way we can create event in calendar for tizen web app like user select  start date , end date  and time then cr8 event for this and show reminder  when its occur?

响应

3 回复
Marco Buettner

Calendar API can do this

daniel kim

Hi,

You can find the sample web application which use Calendar API in the IDE .

    Create a Web Application Project-->Web App-->Sample-->EventManager

Regards,

Seoghyun Kang

Hello

Please refer the following sample code in the EventManager.

defaultCalendar = tizen.calendar.getDefaultCalendar('EVENT');

item = new tizen.CalendarEvent(
    {
        summary: summary,
        isAllDay: isAllDay,
        startDate: startDate,
        endDate: endDate,
        alarms: [alarm]
    });
    
defaultCalendar.add(item);