跳至內容
選單
此問題已被標幟
2702 瀏覽次數

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,

相關帖文 回覆 瀏覽次數 活動
1
5月 23
7123
1
7月 16
4002
1
6月 23
2933
2
12月 19
8426
1
12月 19
5621