Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2712 มุมมอง

Hello, 

I am having a problem that when I add a custom JS widget to the SystrayMenu on the Sign app the document no longer displays. 

I have used this code to not add the widget on the model sign.template when someone refreshes the page. The app would then be added once a user refreshes anywhere out of the sign app. 

if(window.location.href.indexOf("model=sign.template") <= -1){
  SystrayMenu.Items.push(RWidget);
}

Has anyone else had any experience with this issue? 

I am going to try and create and test some JS Widgets and see the results. 

อวตาร
ละทิ้ง

Just ask on it that Have you returned custom widget(i.e. return Rwidget)?

Type a message

ผู้เขียน

Hello Jainesh,

Thank you for the response, I do return the Widget after the condition:

if(window.location.href.indexOf("model=sign.template") <= -1){

SystrayMenu.Items.push(RWidget);

}

return RWidget;

Have you experienced this on JavaScript Widgets before?

Thanks,

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 23
7133
1
ก.ค. 16
4004
1
มิ.ย. 23
2938
2
ธ.ค. 19
8435
1
ธ.ค. 19
5622