Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
hi,
is there a way to extend the timer of showing 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
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