We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can also initialize OpenShare nodes in JavaScript for more fine-grained control over share and count node generation.
You can use the last word from all data attributes in the data attributes API as options in the JS API as well as a few extras:
new OpenShare.share({ type: 'twitter', innerHTML: 'Check it out!' }, document.querySelector('[data-my-element]');
type
bindClick
appendTo
innerHTML
element
classes
You can also generate count nodes using the JavaScript API:
new OpenShare.count({ type: 'facebook', url: 'http://www.digitalsurgeons.com', appendTo: document.querySelector('[data-my-element]') }, function (node) { console.log('count node:', node, 'returned after successful XHR'); });
url
<span>