Login Register

Creating new widgets with nested widgets inside them

[editor: moving to the appropriate forum…]

Hi

I'm trying to create a new widget which will have another new widget nested inside it in the HTML.
like so:

unfortunately when the first widget (widget1) gets created it destroys the DOM element that it is created in so the nested widget (widget2) is not created.
additionally the 2 widgets are created from a template.
how can i make the nested widget appear inside?

Thank you

Just set widgetsInTemplate =

Just set

widgetsInTemplate = true,

in your js-script. And the parser parses your html template for widgets.

Matt