addthisTool
service in module addthis

Description

Use this directive to add an inline AddThis tool onto your page

Usage

as element:
<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>

Parameters

ParamTypeDetails
toolClassstring

the tool class/id for the AddThis inline tool you want to add onto the page.

shareUrlstring

(optional) the url to share when your visitor clicks on a share button in this tool.

shareTitlestring

(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.

shareDescriptionstring

(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.

shareMediastring

(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.

Example

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>