XF 2.1 Dynamically change the sharePage widget?

Jaxel

Well-known member
Is there a way to dynamically change the sharePage widget? Specifically the title? I have a text field on my page, and whenever that field is changed, I would like the title of the sharePage links to change with it.

I have tried the following, to no effect:
Code:
this.$target.find('.shareButtons').data('page-title', 'test');
 
Does your $target actually have the share page widget as child? find() searches child nodes of the element.
 
Yes. I can write it to the console log. Either way, I don't think it would work, because it would have to refire the init on the share-buttons class... and I don't know how to get it to do that.
 
Back
Top Bottom