[SailfishDevel] Howto access createEvent function in org.nemomobile.calendar ?

Andrey Kozhevnikov coderusinbox at gmail.com
Sun May 11 18:38:56 UTC 2014


Calendar is singleton type. You should use it in .js as following:

.import org.nemomobile.calendar 1.0 as NemoCalendar
var event = NemoCalendar.Calendar.createEvent()

12.05.2014 00:21, Matthias Barmeier пишет:
> Hi,
>
> I would like to access the createEvent function from a .js file.
> I tried the following:
>
> --- SNIP
> .import org.nemomobile.calendar 1.0 as Calendar
>
> function addEvent (ocEvent) {
>
> var event = Calendar.createEvent();
> ---
>
> But I only get: Object [object Object] has no method 'createEvent'
>
> What can I do to make it work ?
>
> Ciao
> Matze
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list



More information about the Devel mailing list