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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

how to delay a popup

potatochips
13-Aquamarine

how to delay a popup

hi, 

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

2 REPLIES 2

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

HarshSalvi97
5-Regular Member
(To:sdidier)

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

    

Top Tags