Improve readme about custom buttons.
parent
d8740c5177
commit
26165b9101
|
@ -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
|
```javascript
|
||||||
var socialLikesButtons = {
|
var socialLikesButtons = {
|
||||||
twitter: {
|
livejournal: {
|
||||||
...
|
click: function(e) {
|
||||||
searchUrl: 'https://twitter.com/search?src=typd&q={url}'
|
// this.widget.data('something')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue