XF 2.2 Re-initiate data-xf-init for code that is dynamically created?

Newsman

Member
Hey,

is there a way to re-initialize the data-xf-init part of XF HTML code that is added dynamically via JS?

For example and without elaborating too much, a list of tabs is generated dynamically by inserting it via JS. Now the issue is that the data-xf-init (tabs h-scroller) doesn't seem to automatically activate, which means I do not get the benefits of the tabs/h-scroller modules (like the arrows on the sides whenever the tab list gets too long for example).

Any idea if this is possible or if I'm better off by coding my own dynamic tabs header?

Cheers
 
Top Bottom