Skip to main content
1-Visitor
January 27, 2020
Question

how to delay a popup

  • January 27, 2020
  • 1 reply
  • 1276 views

hi, 

is there a way to extend the timer of showing a popup?

1 reply

17-Peridot
January 27, 2020

Hello Jc2,

 

I think that a custom Javascript function to close a popup is possible by using a timer.

 

To close a popup, use this code :

$scope.view.wdg['myPopupName']['visible'] = true;

 

To close a popup after 1 second, I will use a similar function to that :

$scope.hidePopup = function () {
 $timeout(function() {
 $scope.$broacast( 'view.wdg['myPopupName']['visible'] = true' )
 }, 1000);
}

 

Call the hidePopup function when opening the popup. For example when clicking the button who opens it.

 

Best regards,

Samuel

1-Visitor
March 12, 2020

Hello @sdidier,

                            Thank you for the code, but I am facing syntax error and it is not working. Could you please check the mentioned code. Regards