Skip to content

Commit

Permalink
Docs: Add jsSocials.setDefaults description
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalinas committed May 10, 2015
1 parent 44a65f6 commit 0886d41
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,28 @@ Refreshes sharing control.
$("#share").jsSocials("refresh");
```
#### jsSocials.setDefaults(config)
Set default options for all jsSocials.
```javascript
jsSocials.setDefaults({
showLabel: false,
showCount: "inside"
});
```
#### jsSocials.setDefaults(shareName, config)
Set default options of particular share.
```javascript
jsSocials.setDefaults("twitter", {
via: "artem_tabalin",
hashtags: "jquery,plugin"
});
```
### Share
Expand Down

0 comments on commit 0886d41

Please sign in to comment.