Software Archive
Read-only legacy content
17061 Discussions

Cordova-Plugin-Calendar

Eduardo_R_
Beginner
582 Views

 

Need help for this plugin to work in my app. I have already added <script type="text/javascript" src="js/Calendar.js"></script> in index.html 

How can I use this plugin to open when the user press the upcoming event.html tab on my app? 

What i'm missing?

 

 

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
582 Views

You need to add the plugin using the plugin manager. Cordova will automatically add the references needed to the plugin's JS file. I suspect you are looking at very old instructions for that plugin. See the docs > https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins <

0 Kudos
Eduardo_R_
Beginner
582 Views

Thank you for the reply Paul. I have added the plugin through the manager already. I just want to know how can the event calendar be open with that plugin, the documents of the plugin cordova-plugin-calendar are not good in detail in giving an example. 

Do I need to create a calendar with HTML first and then add the JavaScript code from the plugin?

0 Kudos
PaulF_IntelCorp
Employee
582 Views

I'm assuming you are using this plugin > https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin#3-usage < which includes a demo app > https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/tree/master/demo/www < You'll have to look through his sample to figure it out. Sorry, we're not experts here on the many third-party plugins, how they work is defined by the plugin writer.

0 Kudos
Alex_Hang
New Contributor II
582 Views

Hi Eduardo

If you want to edit, open,create, or delete the calendar events you have to use the next code samples:

To create an event

 <button onclick="createCalendarEvent()">create event</button>

To delete an event:

 <button onclick="deleteEvent()">delete event</button>

To find an event:

<button onclick="findEventWithFilter()">find event with filter</button>

 

0 Kudos
Reply