Coffeekraken.io 0.0.1

SShareComponent

Extends SAnchorWebComponent

Easily create some share buttons to target facebook, twitter, linkedin, google+, etc...

Example

    <a is="s-share" href="#" network="facebook" title="Share on facebook">
    Share on facebook
</a>

Author : Olivier Bossel olivier.bossel@gmail.com

Attributes

Here's the list of available attribute to set on the element.

network

On which network to share the content

Type : { String }

Values : twitter,facebook,linkedin,googleplus,email,whatsapp,telegram,viber,pinterest,tumblr,hackernews,reddit,vk,buffer,xing,line,instapaper,pocket,digg,stumbleupon,flipboard,weibo,renren,myspace,blogger,baidu,okru

Default : null

title

Set the title to share

Type : { String }

Default : document.title

url

Set the url to share

Type : { String }

Default : document.location.href

via

Set a username to tweet through without @

Type : { String }

Default : null

hashtags

Set some hashtags to add to tweet comma separated without #

Type : { String }

Default : null

to

Set an email address to share to

Type : { String }

Default : null

subject

Set the email subject

Type : { String }

Default : document.title

image

Set the absolute image url to share through (pinterest,vk,weibo)

Type : { String }

Default : null

description

Set the description to share (pinterest,instapaper,myspace,blogger,)

Type : { String }

Default : meta[description]

caption

Set the caption to share (tumblr,vk)

Type : { String }

Default : document.title

tags

Set the tags to share comma separated (tumblr)

Type : { String }