enesser / vCards-js

Create vCards to import contacts into Outlook, iOS, Mac OS, and Android devices from your website or application.
MIT License
426 stars 156 forks source link

Custom url's for ios devices #52

Open yasmanets opened 4 years ago

yasmanets commented 4 years ago

With these changes you can set custom urls for iOS devices. Initializing the properties vCard.iosURL and vCard.label as an empty array and putting in each position of the array a url and its label respectively. As in the following example:

vCard.iosURL = [ ];
vCard.label = [ ];

testCard.iosURL.push('https://www.treeala.com');
testCard.iosURL.push('https://www.twitter.com/yasmaniaco');
testCard.iosURL.push('https://www.instagram.com/yasmanets');
testCard.iosURL.push('https://github.com/yasmanets');

testCard.label.push('Web page');
testCard.label.push('Twitter');
testCard.label.push('Instagram');
testCard.label.push('Github');`

You will get the following result: Captura de pantalla de 2020-04-05 17-50-06

DominicSherman commented 3 years ago

@enesser This PR as well ❤️

JuGit-pk commented 1 year ago

@yasmanets please make it able to merge into the main branch, it will be helpful 🙏