showing Overlay Panel from code side
Posted: 09 May 2018, 21:00
Hi All,
I have an overlay panel that needs to be trigger when I have some data that's fetched from server side. I use Ngrx so, I have something like this:
The overlayPanel is a @ViewChild variable as OverlayPanel. Note that I am trying to call toggle method but do not have the $event!! How do I show my panel? I tried the following:
That is passing an empty object in place of the event. I do get the overlay panel to display but with lots of offSetHeight errors in my console
How do I create an event object or call the method to show the overlay panel?
I have an overlay panel that needs to be trigger when I have some data that's fetched from server side. I use Ngrx so, I have something like this:
Code: Select all
this.store.select(getBasicInfo).subscribe( basicData => {
this.overlayPanelTemplate = basicData;
this.overlayPanel.toggle();
});
Code: Select all
this.overlayPanel.toggle({});
How do I create an event object or call the method to show the overlay panel?