addthisTool
addthis
Use this directive to add an inline AddThis tool onto your page
<addthis-tool tool-class="{string}" share-url="{string}" share-title="{string}" share-description="{string}" share-media="{string}"> </addthis-tool>as attribute
<ANY addthis-tool tool-class="{string}" share-url="{string}" share-title="{string}" share-description="{string}" share-media="{string}"> ... </ANY>as class
<ANY class="addthis-tool tool-class: {string}; share-url: {string}; share-title: {string}; share-description: {string}; share-media: {string};"> ... </ANY>
Param | Type | Details |
---|---|---|
toolClass | string | the tool class/id for the AddThis inline tool you want to add onto the page. |
shareUrl | string | (optional) the url to share when your visitor clicks on a share button in this tool. |
shareTitle | string | (optional) the string shared with the url when your visitor clicks on a share button in this tool. Note: Some services (such as Facebook) do not allow you to define the share title for a URL this way. Facebook will always use the Open Graph tags it finds on the page when it crawls it. You can use the Facebook Sharing Debugger to test your Open Graph tags. |
shareDescription | string | (optional) the description string shared with the url when your visitor clicks on a share button in this tool. Note: Some services (such as Facebook) do not allow you to define the share description for a URL this way. Facebook will always use the Open Graph tags it finds on the page when it crawls it. You can use the Facebook Sharing Debugger to test your Open Graph tags. |
shareMedia | string | (optional) the URL for an image to share with the url when your visitor clicks on a share button in this tool. Note: Some services (such as Facebook) do not allow you to define the share image for a URL this way. Facebook will always use the Open Graph tags it finds on the page when it crawls it. You can use the Facebook Sharing Debugger to test your Open Graph tags. |
This example shows how you would add addthis_sharing_toolbox
on
your page and share url http://www.example.com with the text
"Check this out:"
<example
addthis-tool
tool-class="'addthis_sharing_toolbox'"
share-url="'http://www.example.com'"
share-title="'Check this out:'"
share-description="'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'"
share-media="'http://www.example.com/img.png'"
>
</example>