How can I call the sharethis regen button?

I am changing some properties of the sharethis button dynamically and I want it to change. How to do it?

+3
source share
1 answer

depends on the setting you want to do, but if you just dynamically add a sharethis button, call

stButtons.locateElements();

This will re-run the initialization code, and sharethis js will do the magic again.

+6
source

Source: https://habr.com/ru/post/1728540/


All Articles