Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2840 Lượt xem

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. 

Ảnh đại diện
Huỷ bỏ

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

Type a message

Tác giả

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,

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 23
7251
1
thg 7 16
4108
1
thg 6 23
3043
2
thg 12 19
8529
1
thg 12 19
5756