CalendarAccount
The CalendarAccount object contains the calendar account information.
Installation:
To use this API in your project, add the calendar plugin:
webworks plugin add com.blackberry.pim.calendar
Properties: | |
---|---|
Boolean | enterprise |
CalendarFolder[] | folders |
String | id |
String | name |
enterprise
True when this calendar account is an enterprise account.
Synopsis:
Boolean CalendarAccount.enterprise
folders
Return all the folders of the calendar account.
Synopsis:
{CalendarFolder[]} blackberry.pim.calendar.CalendarAccount.folders()
Example:
<script type="text/javascript"> function getCalendarAccountsForGmail() { var calendar = blackberry.pim.calendar, accounts = calendar.getCalendarAccounts(); // gets all calendar accounts that contains "gmail" in its name return accounts.filter(function (acct) { return /gmail/i.test(acct.name); }); } </script>
id
Contains the unique identifier of the calendar account.
Synopsis:
String CalendarAccount.id
name
Name of the calendar account.
Synopsis:
String CalendarAccount.name
Last modified: 2014-10-09
Got questions about leaving a comment? Get answers from our Disqus FAQ.
comments powered by Disqus