Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Eduardo_R_
Beginner
194 Views

Cordova-Plugin-Calendar

 

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?

 

 

Tags (2)
0 Kudos
4 Replies
PaulF_IntelCorp
Employee
194 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 <

Eduardo_R_
Beginner
194 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?

PaulF_IntelCorp
Employee
194 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.

Alex_Hang
New Contributor II
194 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>

 

Reply