cordova-plugin-plusonebutton
This is a plugin for showing a native +1 button
Last updated 4 years ago by jcesarmobile .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cordova-plugin-plusonebutton 
SYNC missed versions from official npm registry.

cordova-plugin-plusonebutton

This is a plugin for showing a native +1 button

To install

cordova plugin add cordova-plugin-plusonebutton

To use it:

Show the button

var params = {};

params.url = "http://www.example.com";

params.size = 2;

params.annotation = 1;

params.position = {x:100,y:100};

plusOneButton.show(params);

Or

plusOneButton.show("http://www.example.com");

You can use Show to move the button changing the position params.

Hide the button

plusOneButton.hide();

Listen for click event

document.addEventListener("plusOneButtonClicked", onOneButtonClicked, false);
function onOneButtonClicked(){
    console.log('clicked');
}

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |