Contact picker service.
You can install this library via Bower.
$ bower install platanus-ionic-contact-picker
Finally, include the JS file in your HTML and the platanus.contactPicker
dependency in your Angular app.
angular.module('yourApp', ['PlContactPicker']);
// An elaborate, custom popup
var myContactPicker = contactPicker.open({
title: 'Do some searchinnn\'!',
searchPlaceholder: 'type here...',
selected: function(contact){
console.log('Selected ',contact);
},
contacts:[{ name:'Jhon Snow' }]
});
$timeout(function(){
myContactPicker.hide();
} ,3000);
Note that if no contacts are passed the service attempts to connect to the phone using ngCordova's contact plugin.
- Support for multiple contact selection
- Integrate Cordova Contacts Plugin
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Thank you contributors!
ionic-contact-picker is maintained by platanus.
Ionic Contact Picker is © 2015 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.