Improve readme about custom buttons.

master
Artem Sapegin 2014-09-10 21:59:24 +04:00
parent d8740c5177
commit 26165b9101
1 changed files with 5 additions and 4 deletions

View File

@ -250,13 +250,14 @@ var socialLikesButtons = {
};
```
If you know the social network search page's URL, you can make a link to results of searching in this network. There are search URLs for Twitter and VKontakte by default.
Or with a custom click handler:
```javascript
var socialLikesButtons = {
twitter: {
...
searchUrl: 'https://twitter.com/search?src=typd&q={url}'
livejournal: {
click: function(e) {
// this.widget.data('something')
}
}
};
```