cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

how to delay a popup

Highlighted
Amethyst

how to delay a popup

hi, 

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

2 REPLIES 2
Highlighted

Re: how to delay a popup

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

Highlighted

Re: how to delay a popup

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

    

Announcements
Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection