[progress Communities] [progress Openedge Abl] Forum Post: Re: Popup/modal Window

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Louis, I got your sample code to work after doing some changes. BTW, where were you calling openUserProfilePopup() from? The includeContentLoaded handler is not being called from the landing-page code. (It is not generated in controller.js.) I will log a bug report for this issue. The approach that I ended up using was to add code to detect when the userProfilePopup is initialized and then open the popup. Here is the code: openUserProfilePopup(kendoWindow) { var userProfilePopupOptions = { width: 550, height: 400, visible: false, actions: ["Close"] }; kendoWindow.setOptions(userProfilePopupOptions); kendoWindow.center(); kendoWindow.open(); } onShow($scope) { console.log('Show'); var that = this; var cancelWatch = $scope.$watch(() => { return angular.element("#userProfilePopup").data("kendoWindow"); },(kendoWindow, oldValue)=>{ if (kendoWindow) { that.openUserProfilePopup(kendoWindow); cancelWatch(); } }); } I hope this helps, Edsel

Continue reading...
 
Status
Not open for further replies.
Back
Top