Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2414 Переглядів

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
6661
1
лип. 16
3752
1
черв. 23
2563
2
груд. 19
8063
1
груд. 19
5415