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

Andrey Kozhevnikov coderusinbox at gmail.com
Sun May 11 21:15:28 UTC 2014


unfortunately most of nemo components are lack of docs, and you should 
read it's sources to work with.
and most of nemomobile components not allowed for publishing in Harbour, 
Just if you want to publish in official store :)

12.05.2014 02:38, Gabriel Böhme ?????:
> Hi,
>
> is there a list of Nemomobile parts, that can be used in Jolla with
> documentation? Or is it just - check what Nemo offers, check that it is
> in Jolla repo and use it by learning what Nemo parts are doing, by
> reading code? :)
>
> Thanks.
>
> Gabriel.
>
>
> Am Sonntag, den 11.05.2014, 22:21 +0200 schrieb Matthias Barmeier:
>> Thanks again ! The link is very helpful ! Everything works as now :)
>>
>> Am 11.05.2014 22:05, schrieb Andrey Kozhevnikov:
>>> setStartTime
>>> https://github.com/nemomobile/nemo-qml-plugin-calendar/blob/master/src/calendarevent.h#L104
>>>
>>>
>>> 12.05.2014 01:58, Matthias Barmeier ?????:
>>>> Hi Andrey,
>>>>
>>>> thanks, works perfect :) Do you have another tip for me ?
>>>> When I ow try to add an event I always get: Error: Cannot assign to
>>>> read-only property "startTime"
>>>>
>>>> Is it possible to enable write-access to this porperty or is there a
>>>> setter method ?
>>>>
>>>> Do you have a hint where I could read about the tricks necessary to
>>>> manage calendar events ?
>>>>
>>>> Ciao
>>>>      Matze
>>>>
>>>>
>>>> Am 11.05.2014 20:38, schrieb Andrey Kozhevnikov:
>>>>> 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
>>>>> _______________________________________________
>>>>> SailfishOS.org Devel mailing list
>>>> _______________________________________________
>>>> SailfishOS.org Devel mailing list
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140512/985249c3/attachment.html>


More information about the Devel mailing list