Calling embedded widget not working.

Deepika Mishra
Mega Guru

I am calling "Ticket Conversation Widget" inside a widget but unable to see the result. If I add it separately on the page it is coming up but not coming when added inside <widget> tag.

Please find the below code:

<div class="panels-container">   
          <widget id='widget-ticket-conversation'></widget>
</div>
1 ACCEPTED SOLUTION

Deepika Mishra
Mega Guru

After few trial and error I found a solution, which might help somebody in near future especially for release Rome and above.

Server Side:

data.ticketConversation = $sp.getWidget("widget-ticket-conversation");

HTML:

<div class="panels-container" >   
          <sp-widget widget="data.ticketConversation"></sp-widget>
</div>

View solution in original post

2 REPLIES 2

Deepika Mishra
Mega Guru

After few trial and error I found a solution, which might help somebody in near future especially for release Rome and above.

Server Side:

data.ticketConversation = $sp.getWidget("widget-ticket-conversation");

HTML:

<div class="panels-container" >   
          <sp-widget widget="data.ticketConversation"></sp-widget>
</div>

hi @Deepika Mishra i have also do the same thing but my widgets are also not working as expected but all widgets are individual working fine can u help me