There was an error while loading. Please reload this page.
You can initialize OpenShare nodes in JavaScript like so...
new OpenShare.share(options, element)
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, like so...
new OpenShare.share({ type: 'twitter', bindClick: true, innerHTML: 'Check it out!' }, document.querySelector('[data-my-element]');
type
bindClick
appendTo
innerHTML
element
classes
You can use the last word from all the data attributes in the data attributes API as Share options in the JS API.
new OpenShare.count(options, element)
url
<span>