Skip to content

Instantly share code, notes, and snippets.

Last active December 31, 2021 00:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Cloudsponge Widget Reference - The beforeDisplayContacts callback
<!DOCTYPE html>
Include the script anywhere on your page, usually in the head
(don't forget to replace `localhost-only` with your own CloudSponge Widget Key)
<script src=""></script>
// variable to hold the complete address book returned from
var complete_address_book;
// extra widget options go here:
beforeDisplayContacts:function(contacts, source, owner) {
// do something with the contacts array
complete_address_book = contacts;
<a class="cloudsponge-launch">Add from Address Book</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment