You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/27 02:19:27 UTC

[jira] [Resolved] (CB-374) Be able to create new custom labels for our contacts fields.

     [ https://issues.apache.org/jira/browse/CB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-374.
--------------------------

       Resolution: Not A Problem
    Fix Version/s: 1.6.0

Hi Olivier,

This feature already exists. Please see the W3C Contacts API [1], which Cordova/PhoneGap implements. Specifically, there is a "categories" property for each Contact object [2]. According to that spec, the categories property should be an array of Strings, however Cordova's current implementation implements as an Array of ContactField objects [3] (a slightly more verbose structure). You can see that in the code [4].

Hope that helps,
Fil

[1] http://www.w3.org/TR/contacts-api/#contact-interface
[2] http://www.w3.org/TR/contacts-api/#widl-Contact-categories
[3] http://www.w3.org/TR/contacts-api/#idl-def-ContactField
[4] https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=blob;f=lib/common/plugin/Contact.js;h=261bb1224f1a11396de314e2d16b911e3e14bd49;hb=HEAD#l76
                
> Be able to create new custom labels for our contacts fields.
> ------------------------------------------------------------
>
>                 Key: CB-374
>                 URL: https://issues.apache.org/jira/browse/CB-374
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: CordovaJS
>            Reporter: Olivier Louvignes
>            Assignee: Filip Maj
>              Labels: contacts
>             Fix For: 1.6.0
>
>
> It would be awesome to being able to create & set custom labels when updating a contact (like "pro", "perso", etc.)
> Unless i'm wrong, it is not possible today. Any chance of seing this soon?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira